Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c01cfa104c | |||
| 8255eedb00 | |||
| b4ff0b5eca | |||
| 120f2c1866 | |||
| 7389cf164c | |||
| 3700fe066f | |||
| 5e85697c82 | |||
| 5f87c5f36c | |||
| 66b7d20e43 | |||
| c389e06ae6 | |||
| 0b83682da7 | |||
| 78b14ec797 | |||
| 8b0954c28c | |||
| 15ef592252 | |||
| 4d74946f0d |
@@ -43,6 +43,7 @@ import AuthRedirect from "./views/AuthRedirect";
|
|||||||
import MyPastDueJobsPage from "./views/MyPastDueJobsPage";
|
import MyPastDueJobsPage from "./views/MyPastDueJobsPage";
|
||||||
import BlogPage from "./views/BlogPage";
|
import BlogPage from "./views/BlogPage";
|
||||||
import MyReviewDueJobsPage from "./views/MyReviewDueJobsPage";
|
import MyReviewDueJobsPage from "./views/MyReviewDueJobsPage";
|
||||||
|
import OffersInterestPage from "./views/OffersInterestPage";
|
||||||
|
|
||||||
export default function Routers() {
|
export default function Routers() {
|
||||||
return (
|
return (
|
||||||
@@ -97,6 +98,7 @@ export default function Routers() {
|
|||||||
<Route exact path="/start-job" element={<StartJob />} />
|
<Route exact path="/start-job" element={<StartJob />} />
|
||||||
<Route exact path="/manage-active-job" element={<ManageActiveJobs />} />
|
<Route exact path="/manage-active-job" element={<ManageActiveJobs />} />
|
||||||
<Route exact path="/blog-page" element={<BlogPage />} />
|
<Route exact path="/blog-page" element={<BlogPage />} />
|
||||||
|
<Route exact path="/offer-interest" element={<OffersInterestPage />} />
|
||||||
|
|
||||||
|
|
||||||
<Route
|
<Route
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ const MarketPopUp = ({ details, onClose, situation, marketInt }) => {
|
|||||||
|
|
||||||
<div className="">
|
<div className="">
|
||||||
<p className="flex items-center tracking-wide">
|
<p className="flex items-center tracking-wide">
|
||||||
Interest: <b className="ml-1">{marketInt?.public_view}</b>
|
Interest: <b className="ml-1">{details.interest_count}</b>
|
||||||
</p>
|
</p>
|
||||||
<hr />
|
<hr />
|
||||||
<p className="my-1">Expire: {expireIntDate}</p>
|
<p className="my-1">Expire: {expireIntDate}</p>
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ function CurrentJobAction() {
|
|||||||
<p className="my-3 py-1 text-base active-owner">
|
<p className="my-3 py-1 text-base active-owner">
|
||||||
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400">
|
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr className="bg-white dark:bg-dark-white border-b dark:border-[#5356fb29] hover:bg-gray-50">
|
<tr className=" border-b dark:border-[#5356fb29] hover:bg-gray-50">
|
||||||
<td className=" py-4">
|
<td className=" py-1">
|
||||||
<div className="flex space-x-2 items-center w-full">
|
<div className="flex space-x-2 items-center w-full">
|
||||||
<div className="flex flex-col flex-[0.9]">
|
<div className="flex flex-col flex-[0.9]">
|
||||||
<h1 className="font-bold text-xl text-dark-gray dark:text-white">
|
<h1 className="text-xl text-dark-gray dark:text-white">
|
||||||
Waiting for the completion message from the client before you can approve.
|
Waiting for the completion message from the client before you can approve.
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -34,23 +34,27 @@ function CurrentTaskAction({jobDetails}) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='job-action'>
|
<div className='job-action'>
|
||||||
|
|
||||||
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400 active-worker">
|
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400 active-worker">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr className="bg-white dark:bg-dark-white border-b dark:border-[#5356fb29] hover:bg-gray-50">
|
<tr className=" border-b">
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
<div className="flex space-x-2 items-center w-full">
|
<div className="flex space-x-2 items-center w-full">
|
||||||
<div className="flex flex-col flex-[0.9]">
|
<h1 className="text-xl text-dark-gray dark:text-white">
|
||||||
<h1 className="font-bold text-xl text-dark-gray dark:text-white">
|
I completed this task and ready for review and acceptance.
|
||||||
If you have completed this task and ready for review and acceptance, click "Set Status" button.
|
</h1>
|
||||||
</h1>
|
{/*<div className="flex flex-col flex-[0.9]">*/}
|
||||||
</div>
|
|
||||||
|
{/*</div>*/}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
</tr>
|
||||||
<td className="text-right px-2">
|
<tr>
|
||||||
|
<td>
|
||||||
<div className="flex justify-center items-center">
|
<div className="flex justify-center items-center">
|
||||||
<button onClick={popUpHandler} type="button" className="w-20 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white">
|
<button onClick={popUpHandler} type="button" className="w-120 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white">
|
||||||
Set Status
|
Send of Review
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -3,9 +3,31 @@ import React from 'react'
|
|||||||
function PastDueJobAction() {
|
function PastDueJobAction() {
|
||||||
return (
|
return (
|
||||||
<div className='job-action'>
|
<div className='job-action'>
|
||||||
<p className="my-3 py-1 text-base">
|
|
||||||
Waiting for the completion message from the client before you can approve. Owner True & PastDue
|
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400 owner-pastdue">
|
||||||
</p>
|
<tbody>
|
||||||
|
<tr className="border-b dark:border-[#5356fb29] hover:bg-gray-50">
|
||||||
|
<td>
|
||||||
|
<div className="flex space-x-2 items-center w-full">
|
||||||
|
<div className="flex flex-col flex-[0.9]">
|
||||||
|
<h1 className="text-xl text-dark-gray dark:text-white">
|
||||||
|
Time allocated has passed
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div className="flex justify-center items-center">
|
||||||
|
<button type="button" className="w-120 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white">
|
||||||
|
Cancel or Extend Timeline
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,9 +3,31 @@ import React from 'react'
|
|||||||
function PastDueTaskAction() {
|
function PastDueTaskAction() {
|
||||||
return (
|
return (
|
||||||
<div className='job-action'>
|
<div className='job-action'>
|
||||||
<p className="my-3 py-1 text-base">
|
|
||||||
Waiting for the completion message from the client before you can approve. Worker True & PastDue
|
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400 worker-pastdue">
|
||||||
</p>
|
<tbody>
|
||||||
|
<tr className=" border-b dark:border-[#5356fb29] hover:bg-gray-50">
|
||||||
|
<td>
|
||||||
|
<div className="flex space-x-2 items-center w-full">
|
||||||
|
<div className="flex flex-col flex-[0.9]">
|
||||||
|
<h1 className="text-xl text-dark-gray dark:text-white">
|
||||||
|
You have missed the allocated time
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div className="flex justify-center items-center">
|
||||||
|
<button type="button" className="w-120 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white">
|
||||||
|
Request Extension
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,21 +6,22 @@ function ReviewJobAction() {
|
|||||||
<p className="my-3 py-1 text-base">
|
<p className="my-3 py-1 text-base">
|
||||||
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400 review-owner">
|
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400 review-owner">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr className="bg-white dark:bg-dark-white border-b dark:border-[#5356fb29] hover:bg-gray-50">
|
<tr className="border-b dark:border-[#5356fb29]">
|
||||||
<td className=" py-4">
|
<td className=" py-1">
|
||||||
<div className="flex space-x-2 items-center w-full">
|
<div className="flex space-x-2 items-center w-full">
|
||||||
<div className="flex flex-col flex-[0.9]">
|
<div className="flex flex-col flex-[0.9]">
|
||||||
<h1 className="font-bold text-xl text-dark-gray dark:text-white">
|
<h1 className="text-xl text-dark-gray dark:text-white">
|
||||||
This Job is Ready for your review
|
This Job is Ready for your review
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
</tr>
|
||||||
<td className="text-right py-4 px-2">
|
<tr>
|
||||||
|
<td>
|
||||||
<div className="flex justify-center items-center">
|
<div className="flex justify-center items-center">
|
||||||
<button type="button" className="w-20 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white">
|
<button type="button" className="w-120 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white">
|
||||||
Reject/Accepts
|
Reject or Accept
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -8,13 +8,24 @@ import LoadingSpinner from '../Spinners/LoadingSpinner'
|
|||||||
function Balance({wallet, coupon}) {
|
function Balance({wallet, coupon}) {
|
||||||
return (
|
return (
|
||||||
<div className="content-wrapper">
|
<div className="content-wrapper">
|
||||||
|
{/* 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">
|
||||||
|
Wallet
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
<div className="slider-btns flex space-x-4">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div className='w-full lg:flex xl:space-x-8 lg:space-x-4 bottomMargin'>
|
<div className='w-full lg:flex xl:space-x-8 lg:space-x-4 bottomMargin'>
|
||||||
{/* WALLET SECTION */}
|
{/* WALLET SECTION */}
|
||||||
<div className="lg:w-3/4 w-full mb-10 lg:mb-0">
|
<div className="lg:w-4/4 w-full mb-10 lg:mb-0">
|
||||||
<div className="wallet w-full md:p-8 p-4 h-full bg-white dark:bg-dark-white rounded-2xl shadow">
|
<div className="wallet w-full md:p-8 p-4 h-full bg-white dark:bg-dark-white rounded-2xl shadow">
|
||||||
<div className='flex items-baseline justify-between'>
|
<div className='flex items-baseline justify-between'>
|
||||||
<h2 className='text-slate-900 dark:text-white text-xl lg:text-2xl font-medium'>Wallet</h2>
|
{/*<h2 className='text-slate-900 dark:text-white text-xl lg:text-2xl font-medium'>Wallet</h2>*/}
|
||||||
<p className='text-base text-slate-500 dark:text-white'>Add New Wallet</p>
|
{/*<p className='text-base text-slate-500 dark:text-white'>Add New Wallet</p>*/}
|
||||||
</div>
|
</div>
|
||||||
{/* wallet balance */}
|
{/* wallet balance */}
|
||||||
{wallet.loading ?
|
{wallet.loading ?
|
||||||
@@ -26,7 +37,7 @@ function Balance({wallet, coupon}) {
|
|||||||
<div className='text-slate-900 w-full md:w-1/2 flex space-x-3 items-start justify-start'>
|
<div className='text-slate-900 w-full md:w-1/2 flex space-x-3 items-start justify-start'>
|
||||||
<div className='balance-info'>
|
<div className='balance-info'>
|
||||||
<p className='py-2'></p>
|
<p className='py-2'></p>
|
||||||
<span className='text-base'>{item.description}</span>
|
<span className='text-xl text-dark-gray dark:text-white'>{item.description}</span>
|
||||||
<p className='text-base text-slate-500'>{item.symbol}</p>
|
<p className='text-base text-slate-500'>{item.symbol}</p>
|
||||||
</div>
|
</div>
|
||||||
<div className='balance-info'>
|
<div className='balance-info'>
|
||||||
@@ -43,10 +54,10 @@ function Balance({wallet, coupon}) {
|
|||||||
{
|
{
|
||||||
item.action_type != 'AC_AD_FD_ONLY' ?
|
item.action_type != 'AC_AD_FD_ONLY' ?
|
||||||
<Link to='transfer-fund' className='lg:flex hidden user-balance cursor-pointer lg:w-[152px] w-[150px] h-[48px]
|
<Link to='transfer-fund' className='lg:flex hidden user-balance cursor-pointer lg:w-[152px] w-[150px] h-[48px]
|
||||||
items-center rounded-full relative bg-purple pr-1.5 pl-4'>Transfer</Link>:''
|
items-center rounded-full relative bg-purple pr-1.5 pl-4 lg:text-xl text-lg font-bold text-white'>Transfer</Link>:''
|
||||||
}
|
}
|
||||||
<Link to='add-fund' className='lg:flex hidden user-balance cursor-pointer lg:w-[152px] w-[150px] h-[48px]
|
<Link to='add-fund' className='lg:flex hidden user-balance cursor-pointer lg:w-[152px] w-[150px] h-[48px]
|
||||||
items-center rounded-full relative bg-purple pr-1.5 pl-4'>+Add Credit</Link>
|
items-center rounded-full relative bg-purple pr-1.5 pl-4 lg:text-xl text-lg font-bold text-white'>+Add Credit</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
))
|
))
|
||||||
@@ -73,22 +84,22 @@ function Balance({wallet, coupon}) {
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='w-full lg:flex xl:space-x-8 lg:space-x-4 bottomMargin'>
|
{/*<div className='w-full lg:flex xl:space-x-8 lg:space-x-4 bottomMargin'>*/}
|
||||||
|
|
||||||
{/* COUPON SECTION */}
|
{/* /!* COUPON SECTION *!/*/}
|
||||||
<div className="lg:w-3/4 w-full mb-10 lg:mb-0">
|
{/* <div className="lg:w-3/4 w-full mb-10 lg:mb-0">*/}
|
||||||
<div className="wallet w-full md:p-8 p-4 h-full max-h-[500px] bg-white dark:bg-dark-white overflow-y-auto rounded-2xl shadow">
|
{/* <div className="wallet w-full md:p-8 p-4 h-full max-h-[500px] bg-white dark:bg-dark-white overflow-y-auto rounded-2xl shadow">*/}
|
||||||
<h2 className='text-slate-900 dark:text-white text-xl lg:text-2xl font-medium'>Coupons</h2>
|
{/* <h2 className='text-slate-900 dark:text-white text-xl lg:text-2xl font-medium'>Coupons</h2>*/}
|
||||||
{coupon.loading ?
|
{/* {coupon.loading ?*/}
|
||||||
<LoadingSpinner size='16' color='sky-blue' />
|
{/* <LoadingSpinner size='16' color='sky-blue' />*/}
|
||||||
:
|
{/* :*/}
|
||||||
<CouponTable coupon={coupon} />
|
{/* <CouponTable coupon={coupon} />*/}
|
||||||
}
|
{/* }*/}
|
||||||
</div>
|
{/* </div>*/}
|
||||||
</div>
|
{/* </div>*/}
|
||||||
{/* END OF COUPON SECTION */}
|
{/* /!* END OF COUPON SECTION *!/*/}
|
||||||
|
|
||||||
</div>
|
{/*</div>*/}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export default function RecomendedSliders({ className,bannerData }) {
|
|||||||
{bannerData.map((item, index) => (
|
{bannerData.map((item, index) => (
|
||||||
<Link key={index} to={`/${item.link_path}`}>
|
<Link key={index} to={`/${item.link_path}`}>
|
||||||
<div className="item">
|
<div className="item">
|
||||||
<div className="commonHeaderSliderItem">
|
<div className={`commonHeaderSliderItem ${item.short_style}`}>
|
||||||
{/* title */}
|
{/* title */}
|
||||||
<div className="flex justify-center">
|
<div className="flex justify-center">
|
||||||
<p className="text-base font-bold text-dark-gray dark:text-white">
|
<p className="text-base font-bold text-dark-gray dark:text-white">
|
||||||
|
|||||||
@@ -9,6 +9,9 @@
|
|||||||
font-family: "Product Sans";
|
font-family: "Product Sans";
|
||||||
src: url("./assets/fonts/Product Sans Bold.ttf");
|
src: url("./assets/fonts/Product Sans Bold.ttf");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.job-action{
|
.job-action{
|
||||||
background-color: lightgoldenrodyellow;
|
background-color: lightgoldenrodyellow;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
@@ -47,6 +50,22 @@
|
|||||||
height: 95px;
|
height: 95px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.short_style{
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
.lr{
|
||||||
|
background-color: #e1cace;
|
||||||
|
}
|
||||||
|
.lg{
|
||||||
|
background-color: #a7dca7;
|
||||||
|
}
|
||||||
|
.lb{
|
||||||
|
background-color: #b3ccd7;
|
||||||
|
}
|
||||||
|
.ly{
|
||||||
|
background-color: #eeee67;
|
||||||
|
}
|
||||||
.offer-slide-item{
|
.offer-slide-item{
|
||||||
background: rgb(2,0,36);
|
background: rgb(2,0,36);
|
||||||
background: radial-gradient(circle, rgba(2,0,36,1) 0%, rgba(3,51,2,0.782125350140056) 0%, rgba(0,212,255,0.07904411764705888) 0%, rgba(153,182,201,1) 99%);
|
background: radial-gradient(circle, rgba(2,0,36,1) 0%, rgba(3,51,2,0.782125350140056) 0%, rgba(0,212,255,0.07904411764705888) 0%, rgba(153,182,201,1) 99%);
|
||||||
|
|||||||
@@ -3,12 +3,10 @@ import usersService from "../services/UsersService";
|
|||||||
//import MyJobs from "../components/MyJobs";
|
//import MyJobs from "../components/MyJobs";
|
||||||
//import MyActiveJobs from "../components/MyActiveJobs";
|
//import MyActiveJobs from "../components/MyActiveJobs";
|
||||||
import MyPastDueJobs from "../components/MyActiveJobs/MyPastDueJobs";
|
import MyPastDueJobs from "../components/MyActiveJobs/MyPastDueJobs";
|
||||||
|
import { useSelector } from "react-redux";
|
||||||
|
|
||||||
export default function MyPastDueJobsPage() {
|
export default function MyPastDueJobsPage() {
|
||||||
const commonHeadData =()=>{
|
let {commonHeadBanner} = useSelector(state => state.commonHeadBanner)
|
||||||
console.log("COMMON HEAD DATA ----------------=====---------------------");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
const [MyJobList, setMyJobList] = useState([]);
|
const [MyJobList, setMyJobList] = useState([]);
|
||||||
const api = new usersService();
|
const api = new usersService();
|
||||||
//TARGET ENDPOINT[POST]http://10.204.5.100:9083/en/wrench/api/v1/jobmanageractive
|
//TARGET ENDPOINT[POST]http://10.204.5.100:9083/en/wrench/api/v1/jobmanageractive
|
||||||
@@ -29,7 +27,7 @@ export default function MyPastDueJobsPage() {
|
|||||||
<>
|
<>
|
||||||
<MyPastDueJobs
|
<MyPastDueJobs
|
||||||
MyJobList={MyJobList}
|
MyJobList={MyJobList}
|
||||||
commonHeadData={commonHeadData}
|
commonHeadData={commonHeadBanner?.result_list}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import React, { useContext, useState, useEffect } from "react";
|
||||||
|
import BlogItem from "../components/Blogs";
|
||||||
|
import { useSelector } from "react-redux";
|
||||||
|
|
||||||
|
export default function OffersInterestPage() {
|
||||||
|
let {commonHeadBanner} = useSelector(state => state.commonHeadBanner)
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<BlogItem commonHeadData={commonHeadBanner.result_list} />
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user