nishiki-tech / nishiki-frontend

Nishiki is an app for tracking and sharing food inventories within groups for better pantry management.
https://nishiki.tech
MIT License
20 stars 5 forks source link

Feat: implement DeleteGroupDialog #248

Closed kanta1207 closed 6 months ago

kanta1207 commented 6 months ago

Overview

Implement DeleteGroupConfirmDialog component.

Changes

Review points

Screen Captures

https://github.com/nishiki-tech/nishiki-frontend/assets/99339182/bf0f42f3-8db6-4ebe-b508-0294f2940d79

Assignee Checklist:

Reviewer Checklist:

kanta1207 commented 6 months ago

@nick-y-ito Thank you for your review! I basically followed the way it's implemented in DeleteFoodDialog, and this PR stays focusing on only UI.

Please take a look at the change when you have time 🙏

kanta1207 commented 6 months ago

@nick-y-ito Thank you for your review!

the dropdown menu should be closed together when closing the dialog

I just forgot to implement the functionality in this PR, so I included it in commit #9c5e7d2.

I am sorry, I found an error in the console after I approved. That says: app-index.js:35 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()? Could you inspect it, please?

Sorry that I didn't notice the warning in the first place. I should've checked that. I fixed the issue in the commit #00e3444. It was because of unnecessary asChild in DropdownMenuItem.

Please kindly take a look at them again on your convenience 🙏

kanta1207 commented 6 months ago

@kanta1207 Thank you for updating!

I think the dropdown menu should also be closed when after the [ Delete ] button is clicked.

There is another problem with this behavior, though... #269

Thank you for your review! I fixed to close dropdown on closing dialog with delete button clicked! Please take a look again 🙏