In Dropdown.tsx module I suggest replace "@radix-ui/react-dialog" library with "@radix-ui/react-dropdown-menu", because
It is semantically correct (dialog != dropdown-menu);
With the current approach, we should always position the dropdown relative to a trigger button. At the same time, "@radix-ui/react-dropdown-menu" positions it correctly out of the box, so less code is needed;
The current dropdown does not work the way a normal dropdown should - when clicking on a menu item, the dropdown does not close. I suppose "@radix-ui/react-dropdown-menu" should have it out of the box. See the video below:
In
Dropdown.tsx
module I suggest replace "@radix-ui/react-dialog" library with "@radix-ui/react-dropdown-menu", becauseScreencast from 09-07-24 23:25:04.webm