|
|
@@ -37,7 +37,7 @@ import ShareLinkIcon from '../Icons/ShareLinkIcon';
|
|
|
import { Skelton } from '../Skelton';
|
|
|
|
|
|
import { GrowiSubNavigation } from './GrowiSubNavigation';
|
|
|
-import { SubNavButtons } from './SubNavButtons';
|
|
|
+import { SubNavButtonsProps } from './SubNavButtons';
|
|
|
|
|
|
import PageEditorModeManagerStyles from './PageEditorModeManager.module.scss';
|
|
|
|
|
|
@@ -46,6 +46,12 @@ const PageEditorModeManager = dynamic(
|
|
|
() => import('./PageEditorModeManager'),
|
|
|
{ ssr: false, loading: () => <Skelton additionalClass={`${PageEditorModeManagerStyles['grw-page-editor-mode-manager-skelton']}`} /> },
|
|
|
);
|
|
|
+// TODO: If enable skeleton, we get hydration error when create a page from PageCreateModal
|
|
|
+// { ssr: false, loading: () => <Skelton additionalClass='btn-skelton py-2' /> },
|
|
|
+const SubNavButtons = dynamic<SubNavButtonsProps>(
|
|
|
+ () => import('./SubNavButtons').then(mod => mod.SubNavButtons),
|
|
|
+ { ssr: false, loading: () => <></> },
|
|
|
+);
|
|
|
|
|
|
|
|
|
type AdditionalMenuItemsProps = {
|
|
|
@@ -304,10 +310,10 @@ const GrowiContextualSubNavigation = (props: GrowiContextualSubNavigationProps):
|
|
|
/>
|
|
|
);
|
|
|
};
|
|
|
+
|
|
|
return (
|
|
|
<>
|
|
|
<div className="d-flex flex-column align-items-end justify-content-center py-md-2" style={{ gap: `${isCompactMode ? '5px' : '7px'}` }}>
|
|
|
-
|
|
|
{ isViewMode && (
|
|
|
<div className="h-50 w-100">
|
|
|
{ pageId != null && (
|