From c2ed04e2b9e50f20f095851b4efabbe96852f941 Mon Sep 17 00:00:00 2001 From: Evgenia Karunus Date: Mon, 29 Jul 2024 13:38:52 +0500 Subject: [PATCH] @uppy/dashboard: make `toggleAddFilesPanel` args consistent (#5365) --- .../dashboard/src/components/FileItem/FileInfo/index.tsx | 6 +++--- packages/@uppy/dashboard/src/components/FileItem/index.tsx | 2 +- packages/@uppy/dashboard/src/components/FileList.tsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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 }