mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
refactor menu list items
This commit is contained in:
@@ -29,8 +29,11 @@ export const MenuListItem = ({item, index, noTextMode, ignore, testID}) => {
|
||||
});
|
||||
eSendEvent(eClearSearch);
|
||||
}
|
||||
item.func();
|
||||
|
||||
if (item.func) {
|
||||
item.func()
|
||||
} else {
|
||||
NavigationService.navigate(item.name)
|
||||
}
|
||||
if (item.close) {
|
||||
NavigationService.closeDrawer();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user