mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-28 22:26:41 +07:00
added dynamic routes
This commit is contained in:
parent
8c17c02b3e
commit
0a1d2cbf99
16 changed files with 143 additions and 89 deletions
12
src/containers/main/Header/ssr.tsx
Normal file
12
src/containers/main/Header/ssr.tsx
Normal file
|
@ -0,0 +1,12 @@
|
|||
import dynamic from 'next/dynamic';
|
||||
|
||||
import type { HeaderProps } from '~/containers/main/Header/index';
|
||||
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
export const HeaderSSR = dynamic<HeaderProps>(() => import('./index').then(it => it.Header), {
|
||||
ssr: false,
|
||||
loading: () => <div className={styles.wrap} />,
|
||||
});
|
||||
|
||||
export const HeaderSSRPlaceholder = () => <div className={styles.wrap} />;
|
Loading…
Add table
Add a link
Reference in a new issue