Feat/header ssr (#594)
This commit is contained in:
parent
b0091452ca
commit
3e1d5ac51b
50 changed files with 916 additions and 275 deletions
|
|
@ -3,6 +3,7 @@ import type { ReactNode } from 'react'
|
|||
import SwrInitor from '@/app/components/swr-initor'
|
||||
import { AppContextProvider } from '@/context/app-context'
|
||||
import GA, { GaType } from '@/app/components/base/ga'
|
||||
import HeaderWrapper from '@/app/components/header/HeaderWrapper'
|
||||
import Header from '@/app/components/header'
|
||||
|
||||
const Layout = ({ children }: { children: ReactNode }) => {
|
||||
|
|
@ -11,7 +12,9 @@ const Layout = ({ children }: { children: ReactNode }) => {
|
|||
<GA gaType={GaType.admin} />
|
||||
<SwrInitor>
|
||||
<AppContextProvider>
|
||||
<Header />
|
||||
<HeaderWrapper>
|
||||
<Header />
|
||||
</HeaderWrapper>
|
||||
{children}
|
||||
</AppContextProvider>
|
||||
</SwrInitor>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue