Prefer to/href for DropdownMenuItems
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -33,6 +33,7 @@ const DropdownMenuItem = ({ index, item, onClick }: IDropdownMenuItem) => {
|
||||
event.stopPropagation();
|
||||
|
||||
if (!item) return;
|
||||
|
||||
if (onClick) onClick();
|
||||
|
||||
if (item.to) {
|
||||
|
||||
Reference in New Issue
Block a user