mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 11:50:14 +00:00
chore: move dynamic header component to header file
This commit is contained in:
parent
62c219c2de
commit
3c4c15a8e3
@ -1,3 +1,5 @@
|
|||||||
|
import dynamic from "next/dynamic";
|
||||||
|
|
||||||
const Header = ({ authData }) => {
|
const Header = ({ authData }) => {
|
||||||
const { session, status } = authData;
|
const { session, status } = authData;
|
||||||
|
|
||||||
@ -11,4 +13,8 @@ const Header = ({ authData }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const DynamicHeader = dynamic(() => import("../components/Header"), {
|
||||||
|
suspense: true,
|
||||||
|
});
|
||||||
|
|
||||||
export default Header;
|
export default Header;
|
||||||
|
Loading…
Reference in New Issue
Block a user