Skip to content

Commit

Permalink
@uppy/dashboard: make toggleAddFilesPanel args consistent (#5365)
Browse files Browse the repository at this point in the history
  • Loading branch information
lakesare committed Jul 29, 2024
1 parent 18cd1db commit c2ed04e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const renderFileSize = (props: { file: UppyFile<any, any> }) =>

const ReSelectButton = (props: {
file: UppyFile<any, any>
toggleAddFilesPanel: () => void
toggleAddFilesPanel: (show: boolean) => void
i18n: I18n
}) =>
props.file.isGhost && (
Expand All @@ -85,7 +85,7 @@ const ReSelectButton = (props: {
<button
className="uppy-u-reset uppy-c-btn uppy-Dashboard-Item-reSelect"
type="button"
onClick={props.toggleAddFilesPanel}
onClick={() => props.toggleAddFilesPanel(true)}
>
{props.i18n('reSelect')}
</button>
Expand Down Expand Up @@ -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<any, any>['metaFields']
isSingleFile: boolean
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/dashboard/src/components/FileItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Props<M extends Meta, B extends Body> = {
id: string
containerWidth: number
containerHeight: number
toggleAddFilesPanel: () => void
toggleAddFilesPanel: (show: boolean) => void
isSingleFile: boolean
hideRetryButton: boolean
hideCancelButton: boolean
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/dashboard/src/components/FileList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type FileListProps<M extends Meta, B extends Body> = {
itemsPerRow: number
openFileEditor: (file: UppyFile<M, B>) => void
canEditFile: (file: UppyFile<M, B>) => boolean
toggleAddFilesPanel: () => void
toggleAddFilesPanel: (show: boolean) => void
containerWidth: number
containerHeight: number
}
Expand Down

0 comments on commit c2ed04e

Please sign in to comment.