diff --git a/src/components/Dashboards/AccountDashboard.jsx b/src/components/Dashboards/AccountDashboard.jsx index 4a3d7fd..254097b 100644 --- a/src/components/Dashboards/AccountDashboard.jsx +++ b/src/components/Dashboards/AccountDashboard.jsx @@ -40,7 +40,7 @@ const AccountDashboard = ({ className, bannerList }) => { ); })} -
+
{getLowerBanner?.map((props, idx) => { let image = getImage(props); @@ -67,7 +67,7 @@ export default AccountDashboard; const TopBanner = ({ image, title = "", desc = "", btn, link_path, key }) => { return ( -
+
{ className="w-full h-full rounded-t-xl object-cover" /> -
-
+
+
{title} @@ -84,7 +84,7 @@ const TopBanner = ({ image, title = "", desc = "", btn, link_path, key }) => { {desc}
-
+
{btn} @@ -103,11 +103,11 @@ const LowerBanner = ({ image, title = "", desc = "", btn, link_path, key }) => { return (
-
+
{title} diff --git a/src/components/Partials/Header.jsx b/src/components/Partials/Header.jsx index 624e119..5793095 100644 --- a/src/components/Partials/Header.jsx +++ b/src/components/Partials/Header.jsx @@ -166,7 +166,7 @@ export default function Header({ logoutModalHandler, sidebarHandler }) { {/* user info */}
{/* dark mode */} -
- + */} {/* balance */} {/* My Page Button */} diff --git a/src/components/Partials/RightSideBar.jsx b/src/components/Partials/RightSideBar.jsx index db8b73d..9974a09 100644 --- a/src/components/Partials/RightSideBar.jsx +++ b/src/components/Partials/RightSideBar.jsx @@ -1,10 +1,11 @@ -import React, { useState } from "react"; +import React, { useContext, useState } from "react"; import { useSelector } from "react-redux"; import { NavLink } from "react-router-dom"; //import SideStatistics from "./SideStatistics"; import { localImgLoad } from "../../lib"; +import DarkModeContext from "../Contexts/DarkModeContext"; -export default function RightSideBar({myJobList}) { +export default function RightSideBar({ myJobList }) { const filterDatas = ["Last 15 days", "Last Month", "Last 6 month"]; const [filterDataSet, setFilterDataSet] = useState([10, 30, 20, 40]); const dataSetHandler = (value) => { @@ -16,6 +17,7 @@ export default function RightSideBar({myJobList}) { setFilterDataSet([8, 15, 40, 30]); } }; + const darkMode = useContext(DarkModeContext); const [selectedRate, setSelectedRate] = useState("ETH"); const [rateStaticsDropdown, setRateStaticsDropdown] = useState(false); @@ -153,79 +155,168 @@ export default function RightSideBar({myJobList}) {

+ {/* dark mode */} +
+
+ + + + + + + + + + + + + + +

+ {darkMode.theme === "light" ? "Dark" : "Light"} Mode +

+
+
{/*JOB LINKS*/} - {(userDetails?.account_type !== "FAMILY" && myJobList?.data?.result_list?.length > 0) && -
- {/* heading */} -
-

- Job Links -

-
-
- -
-
- {/* image */} -
- Active Task -
- {/* name */} -
-

- Active Task -

-
- {/* action */} + {userDetails?.account_type !== "FAMILY" && + myJobList?.data?.result_list?.length > 0 && ( +
+ {/* heading */} +
+

+ Job Links +

+
-
- {/* image */} -
- Review Task +
+
+ {/* image */} +
+ Active Task +
+ {/* name */} +
+

+ Active Task +

+
+ {/* action */}
- {/* name */} -
-

- Review -

+ +
+ {/* image */} +
+ Review Task +
+ {/* name */} +
+

+ Review +

+
+
+ +
+ {/* image */} +
+ Past Due Task +
+ {/* name */} +
+

+ Past Due +

+
+
+ + {/* Line */} +
+ +
+ {/* image */} +
+ Job Groups +
+ {/* name */} +
+

+ Job Groups +

+
- -
- {/* image */} -
- Past Due Task -
- {/* name */} -
-

- Past Due -

-
-
- - {/* Line */} -
- -
- {/* image */} -
- Job Groups -
- {/* name */} -
-

- Job Groups -

-
-
-
-
- } +
+ )}
);