fix: menu items not working

This commit is contained in:
thecodrr
2020-05-15 00:59:04 +05:00
parent 777c37a6cf
commit a763a11872

View File

@@ -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"