+
);
};
diff --git a/src/components/employee/EmployeeDashboard.jsx b/src/components/employee/EmployeeDashboard.jsx
index 5fd9b92..3e6ad6e 100644
--- a/src/components/employee/EmployeeDashboard.jsx
+++ b/src/components/employee/EmployeeDashboard.jsx
@@ -1,40 +1,47 @@
import React from 'react';
import { useNavigate } from 'react-router-dom';
-
+import Sidebar from '../sidebar/Sidebar';
const HomePage = () => {
const navigate = useNavigate();
- const handleClick = () => {
- navigate('/customers'); // Redirects to the '/customers' route
+ const handleClick = (link) => {
+ navigate(link); // Redirects to the '/customers' route
};
return (
-
-
-
-
-
-

-
-
-
-
-
-
+
+
+
+
+
+
+

+
+
+
+
+
+
);
};
diff --git a/src/components/sidebar/Sidebar.jsx b/src/components/sidebar/Sidebar.jsx
index 0de1941..ca38ff1 100644
--- a/src/components/sidebar/Sidebar.jsx
+++ b/src/components/sidebar/Sidebar.jsx
@@ -2,11 +2,51 @@ import React, { useContext } from 'react';
import AdminSidebar from './AdminSidebar';
import EmployeeSidebar from './EmployeeSidebar';
import { AuthContext } from '../../contexts/AuthContext';
+import { useNavigate } from 'react-router-dom';
+// Import your SVG icons
+import HomeIcon from '../../assets/thob-data/HomeIcon.svg';
+import AddCustomerIcon from '../../assets/thob-data/AddCustomerIcon.svg';
+import OrdersIcon from '../../assets/thob-data/OrdersIcon.svg';
+import CategoriesIcon from '../../assets/thob-data/CategoriesIcon.svg';
+import ProfileIcon from '../../assets/thob-data/ProfileIcon.svg';
+import LogoutIcon from '../../assets/thob-data/LogoutIcon.svg';
+
+ const handleNavigation = async (e, link) => {
+ e.preventDefault();
+ window.location = link
+ };
const Sidebar = () => {
- const { user } = useContext(AuthContext);
- if (!user) return null;
- return user.role === 'admin' ?
:
;
+ //const { user } = useContext(AuthContext);
+ //if (!user) return null;
+ // return user.role === 'admin' ?
:
;
+ return (
+
+
+
t.
+
+
+
+ );
};
export default Sidebar;
diff --git a/src/index.css b/src/index.css
index 0e25fd6..8e2378c 100644
--- a/src/index.css
+++ b/src/index.css
@@ -26,17 +26,6 @@ a {
a:hover {
color: #F26502;
}
-/*
-body {
- margin: 0;
- display: flex;
- place-items: center;
- min-width: 320px;
- min-height: 100vh;
- justify-content: center;
- align-items: center;
- background-color: #09090B;
-} */
h1 {
font-size: 3.2em;