reiji-h 1 год назад
Родитель
Сommit
b29832c516
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      apps/app/src/components/PagePresentationModal.tsx

+ 3 - 1
apps/app/src/components/PagePresentationModal.tsx

@@ -1,5 +1,6 @@
 import React, { useCallback } from 'react';
 
+import type { PresentationProps } from '@growi/presentation';
 import { LoadingSpinner } from '@growi/ui/dist/components';
 import { useFullScreen } from '@growi/ui/dist/utils';
 import dynamic from 'next/dynamic';
@@ -14,10 +15,11 @@ import { useSWRxCurrentPage } from '~/stores/page';
 import { usePresentationViewOptions } from '~/stores/renderer';
 import { useNextThemes } from '~/stores/use-next-themes';
 
+
 import styles from './PagePresentationModal.module.scss';
 
 
-const Presentation = dynamic(() => import('./Presentation/Presentation').then(mod => mod.Presentation), {
+const Presentation = dynamic<PresentationProps>(() => import('./Presentation/Presentation').then(mod => mod.Presentation), {
   ssr: false,
   loading: () => (
     <LoadingSpinner className="text-muted fs-1" />