refactor: move Header and Footer to root layout
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import { css, cx } from '@styled-system/css'
|
||||
import type { FC, ReactNode } from 'react'
|
||||
import Footer from '@/components/layout/fragments/Footer'
|
||||
import Header from '@/components/layout/fragments/Header'
|
||||
|
||||
export interface FullWidthProps {
|
||||
className?: string
|
||||
@@ -9,13 +7,7 @@ export interface FullWidthProps {
|
||||
}
|
||||
|
||||
const FullWidth: FC<FullWidthProps> = ({ className, children }) => {
|
||||
return (
|
||||
<>
|
||||
<Header />
|
||||
<main className={cx(css({ flexGrow: 1 }), className)}>{children}</main>
|
||||
<Footer />
|
||||
</>
|
||||
)
|
||||
return <main className={cx(css({ flexGrow: 1 }), className)}>{children}</main>
|
||||
}
|
||||
|
||||
export default FullWidth
|
||||
|
||||
Reference in New Issue
Block a user