From 9ec7fcb40e8db36a61222ca929e13fdc1e09e9f8 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Fri, 13 Jan 2023 19:08:12 +0000 Subject: [PATCH] fix sidebar classnames --- .../src/components/Layout/sidebar/index.jsx | 148 +++++++++--------- 1 file changed, 73 insertions(+), 75 deletions(-) diff --git a/packages/app/src/components/Layout/sidebar/index.jsx b/packages/app/src/components/Layout/sidebar/index.jsx index a23c7fa5..9b7bf48c 100755 --- a/packages/app/src/components/Layout/sidebar/index.jsx +++ b/packages/app/src/components/Layout/sidebar/index.jsx @@ -280,87 +280,85 @@ export default class Sidebar extends React.Component { render() { if (!this.state.menus) return null - return ( -
- { - this.state.customRender && - {this.state.customRender} - - } + return
+ { + this.state.customRender && + {this.state.customRender} + + } - { - !this.state.customRender && <> -
-
- -
+ { + !this.state.customRender && <> +
+
+
+
-
- - {this.renderMenuItems(this.state.menus)} - -
+
+ + {this.renderMenuItems(this.state.menus)} + +
-
- - } override_event="app.openSearcher" > +
+ + } override_event="app.openSearcher" > + + {(t) => t("Search")} + + + } override_event="app.openCreator" > + + {(t) => t("Create")} + + + } override_event="app.openNotifications"> + + {t => t("Notifications")} + + + }> + + {t => t("Settings")} + + + { + app.userData && + + + } + { + !app.userData && }> - {(t) => t("Search")} + {t => t("Login")} - } override_event="app.openCreator" > - - {(t) => t("Create")} - - - } override_event="app.openNotifications"> - - {t => t("Notifications")} - - - }> - - {t => t("Settings")} - - - { - app.userData && - - - } - { - !app.userData && }> - - {t => t("Login")} - - - } - -
- - } -
- ) + } + +
+ + } +
} } \ No newline at end of file