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

+ 2 - 3
packages/app/src/components/Page/PageContents.tsx

@@ -1,8 +1,7 @@
-import React, { useEffect, startTransition } from 'react';
+import React, { useEffect } from 'react';
 
 
 import { pagePathUtils } from '@growi/core';
 import { pagePathUtils } from '@growi/core';
 import { useTranslation } from 'next-i18next';
 import { useTranslation } from 'next-i18next';
-import type { HtmlElementNode } from 'rehype-toc';
 
 
 import { useUpdateStateAfterSave } from '~/client/services/page-operation';
 import { useUpdateStateAfterSave } from '~/client/services/page-operation';
 import { useDrawioModalLauncherForView } from '~/client/services/side-effects/drawio-modal-launcher-for-view';
 import { useDrawioModalLauncherForView } from '~/client/services/side-effects/drawio-modal-launcher-for-view';
@@ -33,7 +32,7 @@ export const PageContents = (): JSX.Element => {
   const { mutate: mutateCurrentPageTocNode } = useCurrentPageTocNode();
   const { mutate: mutateCurrentPageTocNode } = useCurrentPageTocNode();
   const updateStateAfterSave = useUpdateStateAfterSave(currentPage?._id);
   const updateStateAfterSave = useUpdateStateAfterSave(currentPage?._id);
 
 
-  const { data: rendererOptions, mutate: mutateRendererOptions } = useViewOptions((toc: HtmlElementNode) => {
+  const { data: rendererOptions, mutate: mutateRendererOptions } = useViewOptions((toc) => {
     mutateCurrentPageTocNode(toc);
     mutateCurrentPageTocNode(toc);
   });
   });