App.Header refactoring
This commit is contained in:
1 parent
5cc0aa1c0b
commit
de63b5e778
4 files changed
+27
-28
No files matched your search
@@ -4,8 +4,8 @@ import { Footer } from '../Footer'
|
||||
import Comments from '../Comments'
|
||||
import { useReducedMotion } from 'src/hooks/useReducedMotion'
|
||||
import { Wrapper } from '../Wrapper'
|
||||
|
||||
const Header = dynamic(() => import('./Header'), {
|
||||
import { Header } from './Header'
|
||||
const Navigation = dynamic(() => import('../Navigation').then(mod => mod.Navigation), {
|
||||
ssr: false,
|
||||
})
|
||||
|
||||
@@ -22,15 +22,11 @@ export const App: React.FC<IAppProps> = props => {
|
||||
return (
|
||||
<Wrapper
|
||||
header={(
|
||||
<header>
|
||||
<div className="navigation">
|
||||
<div className="navigation__body">
|
||||
<Header
|
||||
menuItems={props.menu.items}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<Header>
|
||||
<Navigation
|
||||
items={props.menu.items}
|
||||
/>
|
||||
</Header>
|
||||
)}
|
||||
footer={(
|
||||
<Footer
|
||||
|
||||
Reference in new issue
Block a user