AddJob_Link Fix

This commit was merged in pull request #205.
This commit is contained in:
2023-06-23 21:42:26 +01:00
parent 87430f530d
commit 452bb73bef
3 changed files with 11 additions and 5 deletions
+3 -1
View File
@@ -1,11 +1,13 @@
import React, { useState } from "react";
import { useLocation } from "react-router-dom";
import Layout from "../Partials/Layout";
import MyJobTable from "./MyJobTable";
import CommonHead from "../UserHeader/CommonHead";
import AddJobPage from "../../views/AddJobPage";
export default function MyJobs(props) {
const [popUp, setPopUp] = useState(false);
let { state } = useLocation();
const [popUp, setPopUp] = useState(state?.popup ? true : false);
const popUpHandler = () => {
setPopUp((prev) => !prev);
};