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 1616 ]
1717 },
1818 "dependencies" : {
19+ "@bprogress/next" : " ^3.2.12" ,
20+ "@hcc/api-base" : " workspace:*" ,
1921 "@hcc/icons" : " workspace:*" ,
2022 "next" : " ^15.4.5" ,
2123 "react" : " ^19.1.1" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { Metadata } from 'next';
22import type { PropsWithChildren } from 'react' ;
33import { Layout } from '~/components/layout' ;
44import { Pretendard } from './_fonts' ;
5+ import { Provider } from './provider' ;
56import '~/styles/globals.css' ;
67
78export const metadata : Metadata = {
@@ -13,7 +14,9 @@ const RootLayout = ({ children }: PropsWithChildren) => {
1314 return (
1415 < html lang = "ko" >
1516 < body className = { Pretendard . className } >
16- < Layout > { children } </ Layout >
17+ < Provider >
18+ < Layout > { children } </ Layout >
19+ </ Provider >
1720 </ body >
1821 </ html >
1922 ) ;
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';
33
44export const Header = ( ) => {
55 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" >
77 < Link href = "/" >
88 < HCCLogo width = "71.5" height = "21" className = "text-primary-500" />
99 </ Link >
You can’t perform that action at this time.
0 commit comments