From 3f04c9f9f801146fd1fa79d1592c9c7edcbd9d5f Mon Sep 17 00:00:00 2001 From: Ebube Date: Thu, 21 Mar 2024 13:28:03 +0100 Subject: [PATCH] added items to right sidebar --- src/components/OffersInterest/index.jsx | 1 + src/components/Partials/MobileSideBar.jsx | 20 +++++++++----- src/components/Partials/RightSideBar.jsx | 32 +++++++++++++++++++++++ src/components/Partials/Sidebar.jsx | 10 +++---- 4 files changed, 51 insertions(+), 12 deletions(-) diff --git a/src/components/OffersInterest/index.jsx b/src/components/OffersInterest/index.jsx index 673c698..8c79db5 100644 --- a/src/components/OffersInterest/index.jsx +++ b/src/components/OffersInterest/index.jsx @@ -9,6 +9,7 @@ export default function OffersInterest(props) { const filterHandler = (value) => { setValue(value); }; + return ( {/* Using mini component reduces the bulk amount of html */}
    {[ - { name: "List", path: "/myjobs", iconName: "job-list" }, + { + name: "List", + path: "/myjobs", + iconName: "job-list", + }, + // { + // name: "Waiting", + // path: "/pend-interest", + // iconName: "pending-job", + // }, { name: "Offers", path: "/my-offers", iconName: "pending-job", }, - { - name: "Waiting", - path: "/pend-interest", - iconName: "pending-job", - }, { name: "Active", path: "/my-active-jobs", diff --git a/src/components/Partials/RightSideBar.jsx b/src/components/Partials/RightSideBar.jsx index 8de8b76..edec74c 100644 --- a/src/components/Partials/RightSideBar.jsx +++ b/src/components/Partials/RightSideBar.jsx @@ -4,6 +4,7 @@ import { NavLink } from "react-router-dom"; //import SideStatistics from "./SideStatistics"; import { localImgLoad } from "../../lib"; import DarkModeContext from "../Contexts/DarkModeContext"; +import Icons from "../Helpers/Icons"; export default function RightSideBar({ myJobList }) { const filterDatas = ["Last 15 days", "Last Month", "Last 6 month"]; @@ -81,6 +82,19 @@ export default function RightSideBar({ myJobList }) { {/* action */} +
    + {/* image */} +
    + +
    + {/* name */} +
    +

    + Waiting +

    +
    + {/* action */} +
    {/* image */}
    @@ -274,6 +288,24 @@ export default function RightSideBar({ myJobList }) { {/* action */}
    +
    + {/* image */} +
    + Active Task +
    + {/* name */} +
    +

    + My Offers +

    +
    + {/* action */} +
    +
    {/* image */}
    diff --git a/src/components/Partials/Sidebar.jsx b/src/components/Partials/Sidebar.jsx index 26bcc35..ee7c23b 100644 --- a/src/components/Partials/Sidebar.jsx +++ b/src/components/Partials/Sidebar.jsx @@ -216,11 +216,11 @@ export default function Sidebar({ path: "/myjobs", iconName: "job-list", }, - { - name: "Waiting", - path: "/pend-interest", - iconName: "pending-job", - }, + // { + // name: "Waiting", + // path: "/pend-interest", + // iconName: "pending-job", + // }, { name: "Offers", path: "/my-offers",