Skip to content

Commit 8d87a73

Browse files
committed
ARTESCA-16316 - Use isLoading prop to disable the Button
1 parent cd63e2b commit 8d87a73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react/ui-elements/DeleteConfirmation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const DeleteConfirmation = ({
4141
className="delete-confirmation-delete-button"
4242
variant="danger"
4343
onClick={() => approve()}
44-
icon={(isLoading || loading) && <Loader size="larger" />}
44+
isLoading={isLoading}
4545
label={isLoading ? 'Deleting...' : 'Delete'}
4646
/>
4747
</Stack>

0 commit comments

Comments
 (0)