Skip to content

Commit

Permalink
Added disabled state
Browse files Browse the repository at this point in the history
A user should no be able to trigger the delete materials modal, if no materials have been selected. This adds a simple check for that.
  • Loading branch information
JacobArrow committed Nov 1, 2023
1 parent a96e530 commit e22d75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/dashboard/modal/ReservationsGroupModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const ReservationGroupModal: FC<ReservationGroupModalProps> = ({
}
})}
buttonType="none"
disabled={false}
disabled={!materialsToDelete.length}
collapsible={false}
size="small"
variant="filled"
Expand Down

0 comments on commit e22d75e

Please sign in to comment.