diff --git a/packages/@uppy/dashboard/src/components/FileItem/FileInfo/index.tsx b/packages/@uppy/dashboard/src/components/FileItem/FileInfo/index.tsx index 5fe6eb02bc..d1fd1930f3 100644 --- a/packages/@uppy/dashboard/src/components/FileItem/FileInfo/index.tsx +++ b/packages/@uppy/dashboard/src/components/FileItem/FileInfo/index.tsx @@ -76,7 +76,7 @@ const renderFileSize = (props: { file: UppyFile }) => const ReSelectButton = (props: { file: UppyFile - toggleAddFilesPanel: () => void + toggleAddFilesPanel: (show: boolean) => void i18n: I18n }) => props.file.isGhost && ( @@ -85,7 +85,7 @@ const ReSelectButton = (props: { @@ -121,7 +121,7 @@ type FileInfoProps = { containerWidth: number containerHeight: number i18n: I18n - toggleAddFilesPanel: () => void + toggleAddFilesPanel: (show: boolean) => void toggleFileCard: (show: boolean, fileId: string) => void metaFields: DashboardState['metaFields'] isSingleFile: boolean diff --git a/packages/@uppy/dashboard/src/components/FileItem/index.tsx b/packages/@uppy/dashboard/src/components/FileItem/index.tsx index 371b79cf46..9065f0fce8 100644 --- a/packages/@uppy/dashboard/src/components/FileItem/index.tsx +++ b/packages/@uppy/dashboard/src/components/FileItem/index.tsx @@ -28,7 +28,7 @@ type Props = { id: string containerWidth: number containerHeight: number - toggleAddFilesPanel: () => void + toggleAddFilesPanel: (show: boolean) => void isSingleFile: boolean hideRetryButton: boolean hideCancelButton: boolean diff --git a/packages/@uppy/dashboard/src/components/FileList.tsx b/packages/@uppy/dashboard/src/components/FileList.tsx index 4e837401a2..d848e6378e 100644 --- a/packages/@uppy/dashboard/src/components/FileList.tsx +++ b/packages/@uppy/dashboard/src/components/FileList.tsx @@ -30,7 +30,7 @@ type FileListProps = { itemsPerRow: number openFileEditor: (file: UppyFile) => void canEditFile: (file: UppyFile) => boolean - toggleAddFilesPanel: () => void + toggleAddFilesPanel: (show: boolean) => void containerWidth: number containerHeight: number }