Family market added

This commit is contained in:
2023-07-02 03:02:29 +01:00
parent 93d9afa417
commit 02d90ebb14
7 changed files with 169 additions and 61 deletions
+3 -4
View File
@@ -1,4 +1,4 @@
import React, { useState} from "react";
import React, { useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { useNavigate } from "react-router-dom";
import useToggle from "../../hooks/useToggle";
@@ -10,10 +10,9 @@ import RightSideBar from "./RightSideBar";
import Sidebar from "./Sidebar";
import usersService from "../../services/UsersService";
export default function Layout({ children }) {
const { drawer } = useSelector((state) => state.drawer);
const {userJobList} = useSelector((state) => state.userJobList)
const { userJobList } = useSelector((state) => state.userJobList);
const dispatch = useDispatch();
const [MobileSideBar, setMobileSidebar] = useToggle(false);
const [logoutModal, setLogoutModal] = useState(false);
@@ -196,4 +195,4 @@ export default function Layout({ children }) {
)}
</>
);
}
}
+9
View File
@@ -124,6 +124,15 @@ export default function Sidebar({
iconName="market"
/>
)}
{userDetails && userDetails?.account_type == "FAMILY" && (
<ListItem
title="Family Market"
route="/familymarket"
// bubble={noOfJobs}
sidebar={sidebar}
iconName="market"
/>
)}
<ListItem
title="My Task(s)"
route="/mytask"