Просмотр исходного кода

fix arg type of onZipFileStatRemove

yohei0125 3 лет назад
Родитель
Сommit
26e144d618

+ 1 - 1
packages/app/src/components/Admin/ExportArchiveData/ArchiveFilesTable.tsx

@@ -7,7 +7,7 @@ import ArchiveFilesTableMenu from './ArchiveFilesTableMenu';
 
 type ArchiveFilesTableProps = {
   zipFileStats: any[],
-  onZipFileStatRemove: (string) => void,
+  onZipFileStatRemove: (fileName: string) => void,
 }
 
 const ArchiveFilesTable = (props: ArchiveFilesTableProps): JSX.Element => {

+ 1 - 1
packages/app/src/components/Admin/ExportArchiveData/ArchiveFilesTableMenu.tsx

@@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next';
 
 type ArchiveFilesTableMenuProps = {
   fileName: string,
-  onZipFileStatRemove: (string) => void,
+  onZipFileStatRemove: (fileName: string) => void,
 }
 
 const ArchiveFilesTableMenu = (props: ArchiveFilesTableMenuProps):JSX.Element => {