|
@@ -198,7 +198,6 @@ const GrowiPage: NextPage<Props> = (props: Props) => {
|
|
|
useIsNotFound(props.isNotFound);
|
|
useIsNotFound(props.isNotFound);
|
|
|
useIsNotCreatable(props.IsNotCreatable);
|
|
useIsNotCreatable(props.IsNotCreatable);
|
|
|
useRedirectFrom(props.redirectFrom);
|
|
useRedirectFrom(props.redirectFrom);
|
|
|
- // useIsTrashPage(_isTrashPage(props.currentPagePath));
|
|
|
|
|
// useShared();
|
|
// useShared();
|
|
|
// useShareLinkId(props.shareLinkId);
|
|
// useShareLinkId(props.shareLinkId);
|
|
|
useIsSharedUser(false); // this page cann't be routed for '/share'
|
|
useIsSharedUser(false); // this page cann't be routed for '/share'
|
|
@@ -247,6 +246,8 @@ const GrowiPage: NextPage<Props> = (props: Props) => {
|
|
|
useCurrentPagePath(pagePath);
|
|
useCurrentPagePath(pagePath);
|
|
|
useCurrentPathname(props.currentPathname);
|
|
useCurrentPathname(props.currentPathname);
|
|
|
useEditingMarkdown(pageWithMeta?.data.revision?.body);
|
|
useEditingMarkdown(pageWithMeta?.data.revision?.body);
|
|
|
|
|
+ useIsTrashPage(_isTrashPage(pagePath));
|
|
|
|
|
+
|
|
|
const { data: grantData } = useSWRxIsGrantNormalized(pageId);
|
|
const { data: grantData } = useSWRxIsGrantNormalized(pageId);
|
|
|
const { mutate: mutateSelectedGrant } = useSelectedGrant();
|
|
const { mutate: mutateSelectedGrant } = useSelectedGrant();
|
|
|
|
|
|