|
@@ -1,6 +1,6 @@
|
|
|
import React, { useEffect } from 'react';
|
|
import React, { useEffect } from 'react';
|
|
|
|
|
|
|
|
-import { type IUserHasId, type IPagePopulatedToShowRevision, getIdForRef } from '@growi/core';
|
|
|
|
|
|
|
+import { type IPagePopulatedToShowRevision, getIdForRef } from '@growi/core';
|
|
|
import type {
|
|
import type {
|
|
|
GetServerSideProps, GetServerSidePropsContext,
|
|
GetServerSideProps, GetServerSidePropsContext,
|
|
|
} from 'next';
|
|
} from 'next';
|
|
@@ -8,7 +8,6 @@ import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
|
|
|
import Head from 'next/head';
|
|
import Head from 'next/head';
|
|
|
import superjson from 'superjson';
|
|
import superjson from 'superjson';
|
|
|
|
|
|
|
|
-import { useLayoutFluidClassNameByPage } from '~/client/services/layout';
|
|
|
|
|
import { ShareLinkLayout } from '~/components/Layout/ShareLinkLayout';
|
|
import { ShareLinkLayout } from '~/components/Layout/ShareLinkLayout';
|
|
|
import GrowiContextualSubNavigationSubstance from '~/components/Navbar/GrowiContextualSubNavigation';
|
|
import GrowiContextualSubNavigationSubstance from '~/components/Navbar/GrowiContextualSubNavigation';
|
|
|
import { DrawioViewerScript } from '~/components/Script/DrawioViewerScript';
|
|
import { DrawioViewerScript } from '~/components/Script/DrawioViewerScript';
|
|
@@ -108,8 +107,6 @@ const SharedPage: NextPageWithLayout<Props> = (props: Props) => {
|
|
|
}, [mutateCurrentPage, props.isNotFound, props.shareLink?.relatedPage._id, props.skipSSR]);
|
|
}, [mutateCurrentPage, props.isNotFound, props.shareLink?.relatedPage._id, props.skipSSR]);
|
|
|
|
|
|
|
|
|
|
|
|
|
- const growiLayoutFluidClass = useLayoutFluidClassNameByPage(props.shareLinkRelatedPage);
|
|
|
|
|
-
|
|
|
|
|
const pagePath = props.shareLinkRelatedPage?.path ?? '';
|
|
const pagePath = props.shareLinkRelatedPage?.path ?? '';
|
|
|
|
|
|
|
|
const title = generateCustomTitleForPage(props, pagePath);
|
|
const title = generateCustomTitleForPage(props, pagePath);
|
|
@@ -120,7 +117,7 @@ const SharedPage: NextPageWithLayout<Props> = (props: Props) => {
|
|
|
<title>{title}</title>
|
|
<title>{title}</title>
|
|
|
</Head>
|
|
</Head>
|
|
|
|
|
|
|
|
- <div className={`dynamic-layout-root ${growiLayoutFluidClass} justify-content-between`}>
|
|
|
|
|
|
|
+ <div className="dynamic-layout-root justify-content-between">
|
|
|
<nav className="sticky-top">
|
|
<nav className="sticky-top">
|
|
|
<GrowiContextualSubNavigationForSharedPage page={currentPage ?? props.shareLinkRelatedPage} isLinkSharingDisabled={props.disableLinkSharing} />
|
|
<GrowiContextualSubNavigationForSharedPage page={currentPage ?? props.shareLinkRelatedPage} isLinkSharingDisabled={props.disableLinkSharing} />
|
|
|
</nav>
|
|
</nav>
|