From 308f1937561a5536b5ea9a64f5b05595354ede3f Mon Sep 17 00:00:00 2001 From: keannu125 Date: Tue, 21 Feb 2023 14:25:55 +0800 Subject: [PATCH] Fix sidebar (again) --- src/components/Sidebar/Sidebar.tsx | 53 ++++++++++++++++++------------ src/styles.tsx | 1 - 2 files changed, 32 insertions(+), 22 deletions(-) diff --git a/src/components/Sidebar/Sidebar.tsx b/src/components/Sidebar/Sidebar.tsx index 041ebe5..cfbc502 100644 --- a/src/components/Sidebar/Sidebar.tsx +++ b/src/components/Sidebar/Sidebar.tsx @@ -57,34 +57,45 @@ export default function Sidebar() { ); } else { return ( -
+
- navigate("/")} name="Dashboard"> - - - navigate("/Products")} name="Products"> - - - navigate("/Inventory")} - name="Inventory" +
- - - navigate("/Logs")} name="Logs"> - - + navigate("/")} name="Dashboard"> + + + navigate("/Products")} + name="Products" + > + + + navigate("/Inventory")} + name="Inventory" + > + + + navigate("/Logs")} name="Logs"> + + + + + +
- - - -
); } diff --git a/src/styles.tsx b/src/styles.tsx index 3863988..f266346 100644 --- a/src/styles.tsx +++ b/src/styles.tsx @@ -141,7 +141,6 @@ const styles: { [key: string]: React.CSSProperties } = { paddingLeft: "2vh", backgroundColor: "#3d4848", }, - sidebar_wrapper: {}, }; export default styles;