This commit is contained in:
Ebube
2023-05-25 08:48:41 +01:00
parent 73a14ba0ec
commit 88d2f7313c
3 changed files with 7 additions and 37 deletions
+3 -25
View File
@@ -15,10 +15,6 @@ export default function StartJob(props) {
const navigate = useNavigate()
let [request, setRequest] = useState({loading: false, status: false, message: ''})
const [selectTab, setValue] = useState("today");
const filterHandler = (value) => {
setValue(value);
};
const handleOnclick = () => {
setRequest({loading: true, status: false, message: ''})
@@ -28,9 +24,10 @@ export default function StartJob(props) {
return
}
setRequest({loading: false, status: true, message: 'Request completed successfully'})
console.log("Job agree", res?.data)
setTimeout(()=>{
navigate('/', {replace: true})
window.location.reload()
// navigate('/', {replace: true})
// window.location.reload()
}, 2000)
}).catch(error => {
setRequest({loading: false, status: false, message: 'Opps! An Error Occured. Try Again'})
@@ -42,25 +39,6 @@ export default function StartJob(props) {
{/*<CommonHead />*/}
<div className="notification-page w-full mb-10">
<div className="notification-wrapper w-full">
{/* heading */}
{/* <div className="sm:flex justify-between items-center mb-6">
<div className="mb-5 sm:mb-0">
<h1 className="text-26 font-bold text-dark-gray dark:text-white">
<span
className={`${selectTab === "today" ? "block" : "hidden"}`}
>
Additional Terms for Jobs Posting.
</span>
</h1>
</div>
<div className="slider-btns flex space-x-4">
<div onClick={() => filterHandler("today")} className="relative">
</div>
</div>
</div> */}
<div
className={`update-table w-full p-8 bg-white dark:bg-dark-white overflow-hidden rounded-2xl section-shadow min-h-[520px]`}
>