File tree Expand file tree Collapse file tree 5 files changed +64
-2
lines changed Expand file tree Collapse file tree 5 files changed +64
-2
lines changed Original file line number Diff line number Diff line change 16
16
]
17
17
},
18
18
"dependencies" : {
19
+ "@bprogress/next" : " ^3.2.12" ,
20
+ "@hcc/api-base" : " workspace:*" ,
19
21
"@hcc/icons" : " workspace:*" ,
20
22
"next" : " ^15.4.5" ,
21
23
"react" : " ^19.1.1" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { Metadata } from 'next';
2
2
import type { PropsWithChildren } from 'react' ;
3
3
import { Layout } from '~/components/layout' ;
4
4
import { Pretendard } from './_fonts' ;
5
+ import { Provider } from './provider' ;
5
6
import '~/styles/globals.css' ;
6
7
7
8
export const metadata : Metadata = {
@@ -13,7 +14,9 @@ const RootLayout = ({ children }: PropsWithChildren) => {
13
14
return (
14
15
< html lang = "ko" >
15
16
< body className = { Pretendard . className } >
16
- < Layout > { children } </ Layout >
17
+ < Provider >
18
+ < Layout > { children } </ Layout >
19
+ </ Provider >
17
20
</ body >
18
21
</ html >
19
22
) ;
Original file line number Diff line number Diff line change
1
+ 'use client' ;
2
+
3
+ import { ProgressProvider } from '@bprogress/next/app' ;
4
+ import { QueryClientProvider } from '@hcc/api-base' ;
5
+ import type { PropsWithChildren } from 'react' ;
6
+
7
+ export const Provider = ( { children } : PropsWithChildren ) => {
8
+ return (
9
+ < QueryClientProvider >
10
+ < ProgressProvider
11
+ color = "var(--color-primary-500)"
12
+ options = { { showSpinner : false } }
13
+ shallowRouting = { false }
14
+ >
15
+ { children }
16
+ </ ProgressProvider >
17
+ </ QueryClientProvider >
18
+ ) ;
19
+ } ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Link from 'next/link';
3
3
4
4
export const Header = ( ) => {
5
5
return (
6
- < header className = "center sticky top-0 z-header h-[44px] w-full border-neutral-50 border-b" >
6
+ < header className = "center sticky top-0 z-header h-[44px] w-full border-neutral-100 border-b" >
7
7
< Link href = "/" >
8
8
< HCCLogo width = "71.5" height = "21" className = "text-primary-500" />
9
9
</ Link >
You can’t perform that action at this time.
0 commit comments