mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
ui: fix hover highlighting 2 items in menu
This commit is contained in:
@@ -96,7 +96,13 @@ export function Menu(props: MenuProps) {
|
||||
|
||||
switch (item.type) {
|
||||
case "lazy-loader":
|
||||
return <LazyLoader key={item.key} item={item} mapper={mapper} />;
|
||||
return (
|
||||
<LazyLoader
|
||||
key={item.key}
|
||||
item={item}
|
||||
mapper={(item, itemIndex) => mapper(item, itemIndex + index)}
|
||||
/>
|
||||
);
|
||||
case "separator":
|
||||
return <MenuSeparator key={item.key} />;
|
||||
case "button":
|
||||
|
||||
Reference in New Issue
Block a user