diff --git a/client/src/components/layout/Sidebar/Sidebar.jsx b/client/src/components/layout/Sidebar/Sidebar.jsx
index b2920d3..1db12b9 100644
--- a/client/src/components/layout/Sidebar/Sidebar.jsx
+++ b/client/src/components/layout/Sidebar/Sidebar.jsx
@@ -1,64 +1,14 @@
-import { useSlotRecipe, Box, Button, createIcon, CloseButton, IconButton } from "@chakra-ui/react";
+import { useSlotRecipe, Box, Button, IconButton } from "@chakra-ui/react";
import { ColorModeButton } from "@/components/ui/color-mode";
import { Tooltip } from "@/components/ui/tooltip";
import { FaVolcano } from "react-icons/fa6";
-import { RxHamburgerMenu } from "react-icons/rx";
import { FaHome } from "react-icons/fa";
+import { FaGlobeAmericas } from "react-icons/fa";
+import { FaMapMarkerAlt } from "react-icons/fa";
+import { HiUsers } from "react-icons/hi2";
+import { VscThreeBars } from "react-icons/vsc";
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({ onChangeView }) {
const [isOpen, setIsOpen] = useState(true);
const [activeButton, setActiveButton] = useState(0)
@@ -66,10 +16,10 @@ export default function Sidebar({ onChangeView }) {
// this list of btns will come from the db (not every usr will have access to admin)
const buttons = [
{icon: FaHome, name: "Home", view: "widget"},
- {icon: Globe, name: "Global Map", view: "global"},
- {icon: MapMarker, name: "Regional Map", view: "regional"},
+ {icon: FaGlobeAmericas, name: "Global Map", view: "global"},
+ {icon: FaMapMarkerAlt, name: "Regional Map", view: "regional"},
{icon: FaVolcano, name: "Volcano", view: "volcano"},
- {icon: Users, name: "Admin", view: "admin"}
+ {icon: HiUsers, name: "Admin", view: "admin"}
];
const recipe = useSlotRecipe({ key: "sidebar" });
@@ -93,7 +43,7 @@ export default function Sidebar({ onChangeView }) {
onClick={toggleSidebar}
width="54px"
>
-
+
{buttons.map((button, idx) => {
@@ -107,9 +57,10 @@ export default function Sidebar({ onChangeView }) {
onChangeView(button.view); // Trigger state change in Dashboard
}}
bg={activeButton === idx ? "primary":undefined}
+ color={activeButton === idx ? "#FFFFFF":undefined}
justifyContent="flex-start"
>
-
+