Yuki Takei 2 лет назад
Родитель
Сommit
f17c20ff29
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      apps/app/src/components/ShareLinkPageView.tsx

+ 3 - 3
apps/app/src/components/ShareLinkPageView.tsx

@@ -3,7 +3,7 @@ import React, { useMemo } from 'react';
 import type { IPagePopulatedToShowRevision } from '@growi/core';
 import type { IPagePopulatedToShowRevision } from '@growi/core';
 import dynamic from 'next/dynamic';
 import dynamic from 'next/dynamic';
 
 
-import { useLayoutFluid } from '~/client/services/layout';
+import { useShouldExpandContent } from '~/client/services/layout';
 import type { RendererConfig } from '~/interfaces/services/renderer';
 import type { RendererConfig } from '~/interfaces/services/renderer';
 import type { IShareLinkHasId } from '~/interfaces/share-link';
 import type { IShareLinkHasId } from '~/interfaces/share-link';
 import { generateSSRViewOptions } from '~/services/renderer/renderer';
 import { generateSSRViewOptions } from '~/services/renderer/renderer';
@@ -45,7 +45,7 @@ export const ShareLinkPageView = (props: Props): JSX.Element => {
 
 
   const { data: viewOptions } = useViewOptions();
   const { data: viewOptions } = useViewOptions();
 
 
-  const isLayoutFluid = useLayoutFluid(page);
+  const shouldExpandContent = useShouldExpandContent(page);
 
 
   const isNotFound = isNotFoundMeta || page == null || shareLink == null;
   const isNotFound = isNotFoundMeta || page == null || shareLink == null;
 
 
@@ -96,7 +96,7 @@ export const ShareLinkPageView = (props: Props): JSX.Element => {
     <PageViewLayout
     <PageViewLayout
       headerContents={headerContents}
       headerContents={headerContents}
       sideContents={sideContents}
       sideContents={sideContents}
-      isLayoutFluid={isLayoutFluid}
+      expandContentWidth={shouldExpandContent}
     >
     >
       { specialContents }
       { specialContents }
       { specialContents == null && (
       { specialContents == null && (