|
|
@@ -83,7 +83,7 @@ const QuestionnaireModalManager = dynamic(() => import('~/features/questionnaire
|
|
|
const logger = loggerFactory('growi:pages:all');
|
|
|
|
|
|
const {
|
|
|
- isPermalink: _isPermalink, isTrashPage: _isTrashPage, isCreatablePage,
|
|
|
+ isPermalink: _isPermalink, isCreatablePage,
|
|
|
} = pagePathUtils;
|
|
|
const { removeHeadingSlash } = pathUtils;
|
|
|
|
|
|
@@ -129,11 +129,6 @@ const GrowiContextualSubNavigation = (props: GrowiContextualSubNavigationProps):
|
|
|
);
|
|
|
};
|
|
|
|
|
|
-const PutbackPageModal = (): JSX.Element => {
|
|
|
- const PutbackPageModal = dynamic(() => import('../components/PutbackPageModal'), { ssr: false });
|
|
|
- return <PutbackPageModal />;
|
|
|
-};
|
|
|
-
|
|
|
type Props = CommonProps & {
|
|
|
pageWithMeta: IPageToShowRevisionWithMeta | null,
|
|
|
// pageUser?: any,
|
|
|
@@ -262,11 +257,6 @@ const Page: NextPageWithLayout<Props> = (props: Props) => {
|
|
|
|
|
|
const growiLayoutFluidClass = useCurrentGrowiLayoutFluidClassName(pageWithMeta?.data);
|
|
|
|
|
|
- const shouldRenderPutbackPageModal = pageWithMeta != null
|
|
|
- ? _isTrashPage(pageWithMeta.data.path)
|
|
|
- : false;
|
|
|
-
|
|
|
-
|
|
|
// Store initial data (When revisionBody is not SSR)
|
|
|
useEffect(() => {
|
|
|
if (!props.skipSSR) {
|
|
|
@@ -365,8 +355,6 @@ const Page: NextPageWithLayout<Props> = (props: Props) => {
|
|
|
/>
|
|
|
|
|
|
<PageStatusAlert />
|
|
|
-
|
|
|
- {shouldRenderPutbackPageModal && <PutbackPageModal />}
|
|
|
</div>
|
|
|
</>
|
|
|
);
|