frontend icon indicating copy to clipboard operation
frontend copied to clipboard

[Feature] Create confirmation modal according to discussion

Open kachar opened this issue 2 years ago • 2 comments

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

kachar avatar Apr 10 '22 07:04 kachar

Is this functionality already implemented?

ani-kalpachka avatar Aug 23 '22 14:08 ani-kalpachka

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

kachar avatar Aug 23 '22 15:08 kachar