We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f6c1a5 commit d699841Copy full SHA for d699841
src/components/FileUpload/ActionCell.jsx
@@ -19,13 +19,15 @@ const ActionCell = ({
19
}, [onDeletedFile, row.index]);
20
return (
21
<>
22
- <IconButton
23
- src={Delete}
24
- alt={formatMessage(messages.deleteButtonAltText)}
25
- iconAs={Icon}
26
- onClick={deleteFile}
27
- disabled={disabled}
28
- />
+ {!disabled && (
+ <IconButton
+ src={Delete}
+ alt={formatMessage(messages.deleteButtonAltText)}
+ iconAs={Icon}
+ onClick={deleteFile}
+ disabled={disabled}
29
+ />
30
+ )}
31
<IconButton
32
src={Preview}
33
alt={formatMessage(messages.previewButtonAltText)}
0 commit comments