few cleanups
This commit was merged in pull request #42.
This commit is contained in:
@@ -11,7 +11,7 @@ export default function Sidebar({ sidebar, action, logoutModalHandler }) {
|
||||
|
||||
let { jobLists } = useSelector((state) => state.jobLists);
|
||||
const marketData = jobLists?.result_list;
|
||||
let noOfJobs = marketData?.length
|
||||
let noOfJobs = marketData?.length;
|
||||
|
||||
useEffect(() => {
|
||||
const title = document.querySelectorAll(".menu-setting-items .heading");
|
||||
@@ -103,9 +103,15 @@ export default function Sidebar({ sidebar, action, logoutModalHandler }) {
|
||||
{[
|
||||
{ name: "Dashboard", path: "/" },
|
||||
{ name: "Market", path: "/market", bubble: noOfJobs },
|
||||
{ name: "My Task(s)", path: "/mytask" }
|
||||
{ name: "My Task(s)", path: "/mytask" },
|
||||
].map(({ name, path, bubble }, idx) => (
|
||||
<ListItem key={idx} title={name} route={path} bubble={bubble} sidebar />
|
||||
<ListItem
|
||||
key={idx}
|
||||
title={name}
|
||||
route={path}
|
||||
bubble={bubble}
|
||||
sidebar
|
||||
/>
|
||||
))}
|
||||
{/*<li className="item group">*/}
|
||||
{/* <NavLink*/}
|
||||
|
||||
Reference in New Issue
Block a user