feat: overhaul ui

This commit is contained in:
thecodrr
2020-11-10 15:08:31 +05:00
parent 6f2723a211
commit 3f60413d2f
44 changed files with 698 additions and 505 deletions

View File

@@ -43,11 +43,12 @@ function Menu(props) {
.join("")
.toLowerCase()}`}
key={item.title}
onClick={(e) => {
onClick={async (e) => {
e.stopPropagation();
if (props.closeMenu) {
props.closeMenu();
}
if (!item.component) {
item.onClick(props.data);
}
@@ -72,7 +73,7 @@ function Menu(props) {
{item.title}
</Text>
)}
{item.onlyPro && isTrial === undefined && (
{item.onlyPro && !isTrial && (
<Text
fontSize="menu"
bg="primary"