From d0f7090be8368ce8ac6a65aec9bca322bb8e208e Mon Sep 17 00:00:00 2001 From: "Kuchenik, Venessa J" Date: Thu, 17 Jul 2025 16:47:04 +0000 Subject: [PATCH] Delete sidebar.jsx (this is extra from when we were renaming files. sidebar.jsx is now Sidebar.jsx) --- client/src/components/sidebar.jsx | 201 ------------------------------ 1 file changed, 201 deletions(-) delete mode 100644 client/src/components/sidebar.jsx diff --git a/client/src/components/sidebar.jsx b/client/src/components/sidebar.jsx deleted file mode 100644 index b094f9a..0000000 --- a/client/src/components/sidebar.jsx +++ /dev/null @@ -1,201 +0,0 @@ -import { chakra, useRecipe, useSlotRecipe, Box, Button, createIcon, CloseButton, IconButton, Stack, useDisclosure, Tooltip } from "@chakra-ui/react"; -import { ColorModeButton } from "@/components/ui/color-mode"; -import { FaVolcano } from "react-icons/fa6"; -import { RxHamburgerMenu } from "react-icons/rx"; -import { useState } from "react"; - -// ICONS -export const PushPin = createIcon({ - displayName: "PushPin", - viewBox: "0 0 24 24", - fill: "none", - path: ( - <> - - - ), -}); - -export const Globe = createIcon({ - displayName: "Globe", - viewBox: "0 0 24 24", - fill: "currentColor", - path: ( - <> - - - - - ), -}); - -export const MapMarker = createIcon({ - displayName: "MapMarker", - viewBox: "0 0 24 24", - fill: "none", - path: ( - <> - - - - ), -}); - -export const Users = createIcon({ - displayName: "Users", - viewBox: "0 0 24 24", - fill: "currentColor", - path: ( - <> - - - - - - - - ), -}); - -export default function Sidebar() { - const [isOpen, setIsOpen] = useState(true); - const [hasFinishedTransitions, setFinishedTransitions] = useState(false); - - const buttons = [ - {icon: PushPin, name: "Dashboard"}, - {icon: Globe, name: "Global Map"}, - {icon: MapMarker, name: "Regional Map"}, - {icon: FaVolcano, name: "Volcano"}, - {icon: Users, name: "Admin"} - ]; - - const [activeButton, setActiveButton] = useState(0) - const recipe = useSlotRecipe({ key: "sidebar" }); - const styles = recipe(); - - const toggleSidebar = () => { - setFinishedTransitions(false); - if (isOpen) setIsOpen(false); - else setIsOpen(true); - setTimeout(() => setFinishedTransitions(true), 400); // Match sidebar transition duration - }; - - - - return ( - - - - - - {buttons.map((button, idx) => { - const Icon = button.icon; - return ( - - ) - })} - - {/* Dashboard */} - {/* */} - - {/* Global Map */} - {/* */} - - {/* Regional Map */} - {/* */} - - {/* Volcano */} - {/* */} - - {/* Admin */} - {/* */} - - - ); -} \ No newline at end of file