|
|
@@ -13,10 +13,12 @@ import { useSWRxCurrentPage } from '~/stores/page';
|
|
|
import { EditorMode, useEditorMode } from '~/stores/ui';
|
|
|
|
|
|
import CountBadge from '../Common/CountBadge';
|
|
|
+import { ContentLinkButtonsProps } from '../ContentLinkButtons';
|
|
|
import CustomTabContent from '../CustomNavigation/CustomTabContent';
|
|
|
import PageListIcon from '../Icons/PageListIcon';
|
|
|
import { Page } from '../Page';
|
|
|
import TableOfContents from '../TableOfContents';
|
|
|
+import { UserInfoProps } from '../User/UserInfo';
|
|
|
|
|
|
import styles from './DisplaySwitcher.module.scss';
|
|
|
|
|
|
@@ -27,9 +29,9 @@ const PageEditor = dynamic(() => import('../PageEditor'), { ssr: false });
|
|
|
const PageEditorByHackmd = dynamic(() => import('../PageEditorByHackmd').then(mod => mod.PageEditorByHackmd), { ssr: false });
|
|
|
const EditorNavbarBottom = dynamic(() => import('../PageEditor/EditorNavbarBottom'), { ssr: false });
|
|
|
const HashChanged = dynamic(() => import('../EventListeneres/HashChanged'), { ssr: false });
|
|
|
-const ContentLinkButtons = dynamic(() => import('../ContentLinkButtons').then(mod => mod.ContentLinkButtons), { ssr: false });
|
|
|
+const ContentLinkButtons = dynamic<ContentLinkButtonsProps>(() => import('../ContentLinkButtons').then(mod => mod.ContentLinkButtons), { ssr: false });
|
|
|
const NotFoundPage = dynamic(() => import('../NotFoundPage'), { ssr: false });
|
|
|
-const UserInfo = dynamic(() => import('../User/UserInfo').then(mod => mod.UserInfo), { ssr: false });
|
|
|
+const UserInfo = dynamic<UserInfoProps>(() => import('../User/UserInfo').then(mod => mod.UserInfo), { ssr: false });
|
|
|
|
|
|
|
|
|
const PageView = React.memo((): JSX.Element => {
|