|
@@ -1,7 +1,8 @@
|
|
|
import React from 'react';
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import type { IUser, IUserHasId } from '@growi/core';
|
|
import type { IUser, IUserHasId } from '@growi/core';
|
|
|
-import { NextPage, GetServerSideProps, GetServerSidePropsContext } from 'next';
|
|
|
|
|
|
|
+import { GetServerSideProps, GetServerSidePropsContext } from 'next';
|
|
|
|
|
+import { useTranslation } from 'next-i18next';
|
|
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
|
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
|
|
|
import dynamic from 'next/dynamic';
|
|
import dynamic from 'next/dynamic';
|
|
|
import Head from 'next/head';
|
|
import Head from 'next/head';
|
|
@@ -17,7 +18,7 @@ import {
|
|
|
useCurrentProductNavWidth, useCurrentSidebarContents, useDrawerMode, usePreferDrawerModeByUser, usePreferDrawerModeOnEditByUser, useSidebarCollapsed,
|
|
useCurrentProductNavWidth, useCurrentSidebarContents, useDrawerMode, usePreferDrawerModeByUser, usePreferDrawerModeOnEditByUser, useSidebarCollapsed,
|
|
|
} from '~/stores/ui';
|
|
} from '~/stores/ui';
|
|
|
|
|
|
|
|
-import { BasicLayoutWithEditorMode } from '../components/Layout/BasicLayout';
|
|
|
|
|
|
|
+import { BasicLayout } from '../components/Layout/BasicLayout';
|
|
|
import {
|
|
import {
|
|
|
useCurrentUser, useCurrentPageId, useCurrentPathname,
|
|
useCurrentUser, useCurrentPageId, useCurrentPathname,
|
|
|
useIsSearchServiceConfigured, useIsSearchServiceReachable,
|
|
useIsSearchServiceConfigured, useIsSearchServiceReachable,
|
|
@@ -28,7 +29,6 @@ import { NextPageWithLayout } from './_app.page';
|
|
|
import {
|
|
import {
|
|
|
CommonProps, getServerSideCommonProps, getNextI18NextConfig, generateCustomTitleForPage,
|
|
CommonProps, getServerSideCommonProps, getNextI18NextConfig, generateCustomTitleForPage,
|
|
|
} from './utils/commons';
|
|
} from './utils/commons';
|
|
|
-import { useTranslation } from 'next-i18next';
|
|
|
|
|
|
|
|
|
|
const TrashPageList = dynamic(() => import('~/components/TrashPageList').then(mod => mod.TrashPageList), { ssr: false });
|
|
const TrashPageList = dynamic(() => import('~/components/TrashPageList').then(mod => mod.TrashPageList), { ssr: false });
|
|
|
const EmptyTrashModal = dynamic(() => import('~/components/EmptyTrashModal'), { ssr: false });
|
|
const EmptyTrashModal = dynamic(() => import('~/components/EmptyTrashModal'), { ssr: false });
|
|
@@ -109,9 +109,9 @@ const TrashPage: NextPageWithLayout<CommonProps> = (props: Props) => {
|
|
|
TrashPage.getLayout = function getLayout(page) {
|
|
TrashPage.getLayout = function getLayout(page) {
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
- <BasicLayoutWithEditorMode>
|
|
|
|
|
|
|
+ <BasicLayout>
|
|
|
{page}
|
|
{page}
|
|
|
- </BasicLayoutWithEditorMode>
|
|
|
|
|
|
|
+ </BasicLayout>
|
|
|
<EmptyTrashModal />
|
|
<EmptyTrashModal />
|
|
|
<PutbackPageModal />
|
|
<PutbackPageModal />
|
|
|
</>
|
|
</>
|