diff --git a/src/userComponents/Navbar.tsx b/src/userComponents/Navbar.tsx index 45e4d65..3d6c00d 100644 --- a/src/userComponents/Navbar.tsx +++ b/src/userComponents/Navbar.tsx @@ -19,7 +19,7 @@ const Navbar: React.FC = () => { const lastSegment = pathSegments[pathSegments.length - 1] || ""; return ( - + diff --git a/src/userComponents/Sidebar.tsx b/src/userComponents/Sidebar.tsx index 3442a81..b6f9b65 100644 --- a/src/userComponents/Sidebar.tsx +++ b/src/userComponents/Sidebar.tsx @@ -1,5 +1,14 @@ import React, { useState } from "react"; -import { Box, VStack, Link, Stack, Text, Image, Flex } from "@chakra-ui/react"; +import { + Box, + VStack, + Link, + Stack, + Text, + Image, + Flex, + HStack, +} from "@chakra-ui/react"; import { Link as RouterLink } from "react-router-dom"; import { MdDashboard } from "react-icons/md"; import logo from "../../public/images/logo/logo.png"; @@ -77,19 +86,27 @@ const Sidebar = () => { )} - {/* Sub-links */} {item.links && activeSection === item.value && ( - + {item.links.map((link) => ( - - {link.label} - + + {activeSection === item.value && ( + + )} + + {link.label} + + ))} )}