frontend
frontend copied to clipboard
[Feature] Create confirmation modal according to discussion
Is your feature request related to a problem? Please describe. We've discussed a specific approach for handling confirmations for deletions and now it's time to actually implement it
Describe the solution you'd like Please develop the discussed functionality from https://github.com/podkrepi-bg/frontend/discussions/567#discussioncomment-2408626
Is this functionality already implemented?
I see this has been implemented in the codebase as ConfirmationDialog
and useConfirm
hook
https://github.com/podkrepi-bg/frontend/blob/master/src/components/common/ConfirmationDialog.tsx
https://github.com/podkrepi-bg/frontend/blob/master/src/common/hooks/useConfirm.ts
What might be left is to use these components in the delete modals and replace the ModalStore
implementations