Prefer to/href for DropdownMenuItems

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-04-28 11:24:59 +02:00
parent 0b2e370705
commit fd65f7f71e
4 changed files with 10 additions and 22 deletions

View File

@ -33,6 +33,7 @@ const DropdownMenuItem = ({ index, item, onClick }: IDropdownMenuItem) => {
event.stopPropagation();
if (!item) return;
if (onClick) onClick();
if (item.to) {