few cleanups

This commit was merged in pull request #42.
This commit is contained in:
Ebube
2023-05-08 17:25:55 +01:00
parent 25884c5194
commit 6583d2600b
2 changed files with 12 additions and 6 deletions
+3 -3
View File
@@ -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 (
<>
<Layout>
+9 -3
View File
@@ -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*/}