|
@@ -9,8 +9,9 @@ import { IUserUISettings } from '~/interfaces/user-ui-settings';
|
|
|
import UserUISettings from '~/server/models/user-ui-settings';
|
|
import UserUISettings from '~/server/models/user-ui-settings';
|
|
|
|
|
|
|
|
import { BasicLayout } from '../components/Layout/BasicLayout';
|
|
import { BasicLayout } from '../components/Layout/BasicLayout';
|
|
|
|
|
+import GrowiContextualSubNavigation from '../components/Navbar/GrowiContextualSubNavigation';
|
|
|
import {
|
|
import {
|
|
|
- useCurrentUser, useCurrentPagePath, useCurrentPathname,
|
|
|
|
|
|
|
+ useCurrentUser, useCurrentPageId, useCurrentPagePath, useCurrentPathname,
|
|
|
useIsSearchServiceConfigured, useIsSearchServiceReachable,
|
|
useIsSearchServiceConfigured, useIsSearchServiceReachable,
|
|
|
useIsSearchScopeChildrenAsDefault,
|
|
useIsSearchScopeChildrenAsDefault,
|
|
|
} from '../stores/context';
|
|
} from '../stores/context';
|
|
@@ -20,8 +21,6 @@ import {
|
|
|
} from './utils/commons';
|
|
} from './utils/commons';
|
|
|
|
|
|
|
|
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 GrowiContextualSubNavigation = dynamic(() => import('~/components/Navbar/GrowiContextualSubNavigation'), { ssr: true });
|
|
|
|
|
-
|
|
|
|
|
const EmptyTrashModal = dynamic(() => import('~/components/EmptyTrashModal'), { ssr: false });
|
|
const EmptyTrashModal = dynamic(() => import('~/components/EmptyTrashModal'), { ssr: false });
|
|
|
|
|
|
|
|
type Props = CommonProps & {
|
|
type Props = CommonProps & {
|
|
@@ -39,6 +38,7 @@ const TrashPage: NextPage<CommonProps> = (props: Props) => {
|
|
|
useIsSearchServiceReachable(props.isSearchServiceReachable);
|
|
useIsSearchServiceReachable(props.isSearchServiceReachable);
|
|
|
useIsSearchScopeChildrenAsDefault(props.isSearchScopeChildrenAsDefault);
|
|
useIsSearchScopeChildrenAsDefault(props.isSearchScopeChildrenAsDefault);
|
|
|
|
|
|
|
|
|
|
+ useCurrentPageId(null);
|
|
|
useCurrentPathname('/trash');
|
|
useCurrentPathname('/trash');
|
|
|
useCurrentPagePath('/trash');
|
|
useCurrentPagePath('/trash');
|
|
|
|
|
|