Kaynağa Gözat

refactor type

yuken 4 yıl önce
ebeveyn
işleme
5d2378a2bd

+ 2 - 2
packages/app/src/components/EmptyTrashButton.tsx

@@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next';
 import {
 import {
   IDataWithMeta,
   IDataWithMeta,
   IPageHasId,
   IPageHasId,
-  IPageInfoForOperation,
+  IPageInfo,
 } from '~/interfaces/page';
 } from '~/interfaces/page';
 import { usePageDeleteModal } from '~/stores/modal';
 import { usePageDeleteModal } from '~/stores/modal';
 import { useSWRxDescendantsPageListForCurrrentPath, useSWRxPageInfoForList } from '~/stores/page';
 import { useSWRxDescendantsPageListForCurrrentPath, useSWRxPageInfoForList } from '~/stores/page';
@@ -19,7 +19,7 @@ const EmptyTrashButton = () => {
   const pageIds = pagingResult?.items?.map(page => page._id);
   const pageIds = pagingResult?.items?.map(page => page._id);
   const { injectTo } = useSWRxPageInfoForList(pageIds, true, true);
   const { injectTo } = useSWRxPageInfoForList(pageIds, true, true);
 
 
-  let pageWithMetas: IDataWithMeta<IPageHasId, IPageInfoForOperation>[] = [];
+  let pageWithMetas: IDataWithMeta<IPageHasId, IPageInfo>[] = [];
 
 
   const convertToIDataWithMeta = (page) => {
   const convertToIDataWithMeta = (page) => {
     return { data: page };
     return { data: page };