Shun Miyazawa пре 3 година
родитељ
комит
84a3c3811c

+ 0 - 1
packages/app/src/components/Layout/ShareLinkLayout.tsx

@@ -39,7 +39,6 @@ export const ShareLinkLayout = ({
       </div>
 
       <GrowiNavbarBottom />
-      {/* <HotkeysManager /> */}
 
       <Fab />
 

+ 1 - 1
packages/app/src/components/Page.tsx

@@ -201,7 +201,7 @@ export const Page = (props) => {
   }, []);
 
   const { data: shareLinkId } = useShareLinkId();
-  const { data: currentPage } = useSWRxCurrentPage(shareLinkId ?? '');
+  const { data: currentPage } = useSWRxCurrentPage(shareLinkId ?? undefined);
   const { data: editorMode } = useEditorMode();
   const { data: isGuestUser } = useIsGuestUser();
   const { data: isMobile } = useIsMobile();

+ 2 - 2
packages/app/src/pages/share/[[...path]].page.tsx

@@ -9,7 +9,7 @@ import dynamic from 'next/dynamic';
 
 import { ShareLinkLayout } from '~/components/Layout/ShareLinkLayout';
 import GrowiContextualSubNavigation from '~/components/Navbar/GrowiContextualSubNavigation';
-import DisplaySwitcher from '~/components/Page/DisplaySwitcher';
+import { Page } from '~/components/Page';
 import { CrowiRequest } from '~/interfaces/crowi-request';
 import { RendererConfig } from '~/interfaces/services/renderer';
 import { IShareLinkHasId } from '~/interfaces/share-link';
@@ -88,7 +88,7 @@ const SharedPage: NextPage<Props> = (props: Props) => {
             {(isShowSharedPage && props.shareLink != null) && (
               <>
                 <ShareLinkAlert expiredAt={props.shareLink.expiredAt} createdAt={props.shareLink.createdAt} />
-                <DisplaySwitcher />
+                <Page />
               </>
             )}
           </div>