From 985fa2f7c99832cdf3c3351d2273c8fd05402b78 Mon Sep 17 00:00:00 2001 From: polwex Date: Wed, 17 Sep 2025 21:45:18 +0700 Subject: basic comms working --- front/src/components/layout/Sidebar.tsx | 46 ++++++++++----------------------- 1 file changed, 13 insertions(+), 33 deletions(-) (limited to 'front/src/components/layout/Sidebar.tsx') diff --git a/front/src/components/layout/Sidebar.tsx b/front/src/components/layout/Sidebar.tsx index 4055454..d237fb5 100644 --- a/front/src/components/layout/Sidebar.tsx +++ b/front/src/components/layout/Sidebar.tsx @@ -1,20 +1,13 @@ import { RADIO, versionNum } from "@/logic/constants"; import { useLocation } from "wouter"; import useLocalState from "@/state/state"; -import key from "@/assets/icons/key.svg"; import logo from "@/assets/icons/logo.png"; -import home from "@/assets/icons/home.svg"; -import bell from "@/assets/icons/bell.svg"; -import settings from "@/assets/icons/settings.svg"; -import messages from "@/assets/icons/messages.svg"; -import profile from "@/assets/icons/profile.svg"; -import pals from "@/assets/icons/pals.svg"; -import rumors from "@/assets/icons/rumors.svg"; +import Icon from "@/components/Icon"; import { ThemeSwitcher } from "@/styles/ThemeSwitcher"; function SlidingMenu() { const [_, navigate] = useLocation(); - const { api } = useLocalState(); + const { api } = useLocalState((s) => ({ api: s.api })); function goto(to: string) { navigate(to); } @@ -26,21 +19,25 @@ function SlidingMenu() {

Feeds

goto(`/feed/global`)}> - +
Home
goto(`/hark`)}> - +
Activity

-
goto("/chat")}> - +
goto("/chat")} + > +
Messages
goto("/pals")}> - +
Pals

@@ -49,29 +46,12 @@ function SlidingMenu() { role="link" onClick={() => goto(`/feed/${api!.airlock.our}`)} > - +
Profile
-
goto("/feed/anon")}> - -
Rumors
-
-
-
goto("/radio")}> -
{RADIO}
-
Radio
-

-
(window.location.href = "/cookies")} - > - -
Logins
-
goto("/sets")}> - +
Settings
-- cgit v1.2.3