From 78d70df192074aa27a14e71e77749c6c41cef8ae Mon Sep 17 00:00:00 2001 From: Benjamin Bolte Date: Thu, 1 Aug 2024 22:27:13 -0700 Subject: [PATCH] more fixes --- frontend/src/components/nav/Sidebar.tsx | 53 +++++++++++++++++++------ 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/frontend/src/components/nav/Sidebar.tsx b/frontend/src/components/nav/Sidebar.tsx index 8f6d554a..0777a3f4 100644 --- a/frontend/src/components/nav/Sidebar.tsx +++ b/frontend/src/components/nav/Sidebar.tsx @@ -20,24 +20,48 @@ interface SidebarItemProps { icon?: JSX.Element; onClick?: () => void; size?: "sm" | "md" | "lg"; + align?: "left" | "right"; } -const SidebarItem = ({ icon, title, onClick, size }: SidebarItemProps) => { +const SidebarItem = ({ + icon, + title, + onClick, + size, + align, +}: SidebarItemProps) => { return (
  • @@ -160,7 +184,7 @@ const Sidebar = ({ show, onClose }: Props) => { {/* Aligned to bottom */} -
    +
      { onClose(); }} size="sm" + align="right" /> { onClose(); }} size="sm" + align="right" /> { onClose(); }} size="sm" + align="right" />