Added link to Family Market
This commit is contained in:
@@ -8,7 +8,7 @@ import { PriceFormatter } from "../Helpers/PriceFormatter";
|
|||||||
|
|
||||||
const noTasksBg = require("../../assets/images/no-task-background.jpg");
|
const noTasksBg = require("../../assets/images/no-task-background.jpg");
|
||||||
|
|
||||||
export default function MyJobTable({ className, ActiveJobList }) {
|
export default function MyJobTable({ className, ActiveJobList, Account }) {
|
||||||
let navigate = useNavigate();
|
let navigate = useNavigate();
|
||||||
let { pathname } = useLocation();
|
let { pathname } = useLocation();
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ export default function MyJobTable({ className, ActiveJobList }) {
|
|||||||
const navigateMarket = () => {
|
const navigateMarket = () => {
|
||||||
setBtnLoader(true);
|
setBtnLoader(true);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
navigate("/market", { replace: true });
|
navigate(Account == "FULL" ? "/market" : "/", { replace: true });
|
||||||
setBtnLoader(false);
|
setBtnLoader(false);
|
||||||
}, 2500);
|
}, 2500);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,14 +3,18 @@ import { Link } from "react-router-dom";
|
|||||||
import Layout from "../Partials/Layout";
|
import Layout from "../Partials/Layout";
|
||||||
import MyJobTable from "./MyJobTable";
|
import MyJobTable from "./MyJobTable";
|
||||||
import CommonHead from "../UserHeader/CommonHead";
|
import CommonHead from "../UserHeader/CommonHead";
|
||||||
import TopSellerTopBuyerSliderSection from "../Home/TopSellerTopBuyerSliderSection";
|
|
||||||
import MyOffersTable from "./MyOffersTable";
|
import MyOffersTable from "./MyOffersTable";
|
||||||
|
import { useSelector } from "react-redux";
|
||||||
|
|
||||||
export default function MyTasks({
|
export default function MyTasks({
|
||||||
MyActiveOffersList,
|
MyActiveOffersList,
|
||||||
ActiveJobList,
|
ActiveJobList,
|
||||||
commonHeadData,
|
commonHeadData,
|
||||||
}) {
|
}) {
|
||||||
|
const { userDetails: account_type } = useSelector(
|
||||||
|
(state) => state?.userDetails
|
||||||
|
);
|
||||||
|
|
||||||
const [selectTab, setValue] = useState("today");
|
const [selectTab, setValue] = useState("today");
|
||||||
const filterHandler = (value) => {
|
const filterHandler = (value) => {
|
||||||
setValue(value);
|
setValue(value);
|
||||||
@@ -45,7 +49,7 @@ export default function MyTasks({
|
|||||||
className="mb-10"
|
className="mb-10"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<MyJobTable ActiveJobList={ActiveJobList} />
|
<MyJobTable ActiveJobList={ActiveJobList} Account={account_type} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|||||||
Reference in New Issue
Block a user