From 6583d2600bcdb5d8a4097afda23b6a95bf3b66f2 Mon Sep 17 00:00:00 2001 From: Ebube Date: Mon, 8 May 2023 17:25:55 +0100 Subject: [PATCH] few cleanups --- src/components/MarketPlace/index.jsx | 6 +++--- src/components/Partials/Sidebar.jsx | 12 +++++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/components/MarketPlace/index.jsx b/src/components/MarketPlace/index.jsx index 26f6028..11891e6 100644 --- a/src/components/MarketPlace/index.jsx +++ b/src/components/MarketPlace/index.jsx @@ -1,16 +1,16 @@ import React from "react"; -import products from "../../data/marketplace_data.json"; +// import products from "../../data/marketplace_data.json"; //import CreateNft from "../Home/CreateNft"; import Layout from "../Partials/Layout"; import MainSection from "./MainSection"; import CommonHead from "../UserHeader/CommonHead"; import { useSelector } from "react-redux"; -export default function MarketPlace(props) { +export default function MarketPlace() { let { jobLists } = useSelector((state) => state.jobLists); const marketData = jobLists?.result_list; - const marketProduct = products.data; + // const marketProduct = products.data; return ( <> diff --git a/src/components/Partials/Sidebar.jsx b/src/components/Partials/Sidebar.jsx index 480390b..799ccbb 100644 --- a/src/components/Partials/Sidebar.jsx +++ b/src/components/Partials/Sidebar.jsx @@ -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) => ( - + ))} {/*
  • */} {/*