|
@@ -13,7 +13,7 @@ import PageListIcon from '~/components/Icons/PageListIcon';
|
|
|
import { ShareLinkLayout } from '~/components/Layout/ShareLinkLayout';
|
|
import { ShareLinkLayout } from '~/components/Layout/ShareLinkLayout';
|
|
|
import GrowiContextualSubNavigation from '~/components/Navbar/GrowiContextualSubNavigation';
|
|
import GrowiContextualSubNavigation from '~/components/Navbar/GrowiContextualSubNavigation';
|
|
|
import { Page } from '~/components/Page';
|
|
import { Page } from '~/components/Page';
|
|
|
-import styles from '~/components/Page/DisplaySwitcher.module.scss';
|
|
|
|
|
|
|
+import styles from '~/components/Page/DisplaySwitcher.module.scss'; // for PageList toc style
|
|
|
import TableOfContents from '~/components/TableOfContents';
|
|
import TableOfContents from '~/components/TableOfContents';
|
|
|
import { SupportedAction, SupportedActionType } from '~/interfaces/activity';
|
|
import { SupportedAction, SupportedActionType } from '~/interfaces/activity';
|
|
|
import { CrowiRequest } from '~/interfaces/crowi-request';
|
|
import { CrowiRequest } from '~/interfaces/crowi-request';
|
|
@@ -22,7 +22,6 @@ import { IShareLinkHasId } from '~/interfaces/share-link';
|
|
|
import {
|
|
import {
|
|
|
useCurrentUser, useCurrentPagePath, useCurrentPathname, useCurrentPageId, useRendererConfig, useIsSearchPage,
|
|
useCurrentUser, useCurrentPagePath, useCurrentPathname, useCurrentPageId, useRendererConfig, useIsSearchPage,
|
|
|
useShareLinkId, useIsSearchServiceConfigured, useIsSearchServiceReachable, useIsSearchScopeChildrenAsDefault,
|
|
useShareLinkId, useIsSearchServiceConfigured, useIsSearchServiceReachable, useIsSearchScopeChildrenAsDefault,
|
|
|
- useIsSharedUser,
|
|
|
|
|
} from '~/stores/context';
|
|
} from '~/stores/context';
|
|
|
import { useDescendantsPageListModal } from '~/stores/modal';
|
|
import { useDescendantsPageListModal } from '~/stores/modal';
|
|
|
import loggerFactory from '~/utils/logger';
|
|
import loggerFactory from '~/utils/logger';
|
|
@@ -31,7 +30,6 @@ import {
|
|
|
CommonProps, getServerSideCommonProps, useCustomTitle, getNextI18NextConfig,
|
|
CommonProps, getServerSideCommonProps, useCustomTitle, getNextI18NextConfig,
|
|
|
} from '../utils/commons';
|
|
} from '../utils/commons';
|
|
|
|
|
|
|
|
-
|
|
|
|
|
const logger = loggerFactory('growi:next-page:share');
|
|
const logger = loggerFactory('growi:next-page:share');
|
|
|
|
|
|
|
|
const ShareLinkAlert = dynamic(() => import('~/components/Page/ShareLinkAlert'), { ssr: false });
|
|
const ShareLinkAlert = dynamic(() => import('~/components/Page/ShareLinkAlert'), { ssr: false });
|
|
@@ -66,8 +64,6 @@ const SharedPage: NextPage<Props> = (props: Props) => {
|
|
|
const isShowSharedPage = !props.disableLinkSharing && !isNotFound && !props.isExpired;
|
|
const isShowSharedPage = !props.disableLinkSharing && !isNotFound && !props.isExpired;
|
|
|
const shareLink = props.shareLink;
|
|
const shareLink = props.shareLink;
|
|
|
|
|
|
|
|
- useIsSharedUser(false);
|
|
|
|
|
-
|
|
|
|
|
return (
|
|
return (
|
|
|
<ShareLinkLayout title={useCustomTitle(props, 'GROWI')} expandContainer={props.isContainerFluid}>
|
|
<ShareLinkLayout title={useCustomTitle(props, 'GROWI')} expandContainer={props.isContainerFluid}>
|
|
|
<div className="h-100 d-flex flex-column justify-content-between">
|
|
<div className="h-100 d-flex flex-column justify-content-between">
|