mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix: menu items not working
This commit is contained in:
@@ -42,10 +42,10 @@ function Menu(props) {
|
||||
props.closeMenu();
|
||||
}
|
||||
const onlyPro = item.onlyPro && !isPremium;
|
||||
if (onlyPro && item.onClick) {
|
||||
if (onlyPro) {
|
||||
// TODO
|
||||
} else if (item.onClick) {
|
||||
item.onClick(props.data);
|
||||
} else {
|
||||
// TODO show the buy dialog
|
||||
}
|
||||
}}
|
||||
flexDirection="row"
|
||||
|
||||
Reference in New Issue
Block a user