Skip to content

Commit

Permalink
fix: not changing color when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Valimp committed Oct 23, 2024
1 parent 3b27e7d commit 7fb002f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/DeleteButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,10 @@ const DeleteButton = ({ barcode, imgids, handleImageDeleted }: DeleteButtonProps
<Button
aria-label="delete"
color={
isLoading ?
'warning'
isConfirmed ?
'info'
:
(isConfirmed ?
'info'
:
'error')
'error'
}
startIcon={
isLoading ?
Expand Down

0 comments on commit 7fb002f

Please sign in to comment.