@@ -58,8 +58,22 @@ const SidebarLink: React.FC
= ({ to, icon, text, onClick }) => (
{text}
-
-);
+ );
+
+ if (to) {
+ return (
+
+ {body}
+
+ );
+ }
+
+ return (
+
+ {body}
+
+ );
+};
const getOtherAccounts = makeGetOtherAccounts();
@@ -76,8 +90,6 @@ const SidebarMenu: React.FC = (): JSX.Element | null => {
const sidebarOpen = useAppSelector((state) => state.sidebar.sidebarOpen);
const settings = useAppSelector((state) => getSettings(state));
- const baseURL = account ? getBaseURL(account) : '';
-
const closeButtonRef = React.useRef(null);
const [switcher, setSwitcher] = React.useState(false);
@@ -220,15 +232,6 @@ const SidebarMenu: React.FC = (): JSX.Element | null => {
/>
)}
- {instance.invites_enabled && (
-
- )}
-
{settings.get('isDeveloper') && (