Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7f631190dc | |||
| 6815eea66c | |||
| c8e2ae9efb | |||
| 455248f9db | |||
| fee3376a88 |
@@ -73,26 +73,26 @@ export default function FamilyTableNew() {
|
||||
|
||||
// Object that maps tab names to their corresponding components
|
||||
const tabComponents = {
|
||||
Tasks: (
|
||||
tasks: (
|
||||
<FamilyTasks
|
||||
familyData={familyTasks}
|
||||
action={familyAssignPopUpHandler}
|
||||
/>
|
||||
),
|
||||
Waiting: (
|
||||
waiting: (
|
||||
<FamilyWaitlist
|
||||
familyData={familyWaitList}
|
||||
setUpdatePage={setUpdatePage}
|
||||
/>
|
||||
),
|
||||
Pending: (
|
||||
pending: (
|
||||
<FamilyPending
|
||||
familyData={familyPending}
|
||||
/>
|
||||
),
|
||||
};
|
||||
|
||||
const defaultTabComponent = tabComponents.Tasks;
|
||||
const defaultTabComponent = tabComponents.tasks;
|
||||
|
||||
// Selected tab component based on the current 'tab'
|
||||
const selectedTabComponent = tabComponents[tab] || defaultTabComponent;
|
||||
|
||||
@@ -141,39 +141,38 @@ function OfferJobPopout({ details, onClose, situation }) {
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div className="md:flex bg-white dark:bg-dark-white rounded-lg">
|
||||
<div className="p-4 w-full md:w-3/4 md:border-r-2">
|
||||
<div className="grid md:grid-cols-4 bg-white dark:bg-dark-white rounded-lg">
|
||||
<div className="p-4 w-full md:col-span-3 md:border-r-2">
|
||||
|
||||
{/* INPUT SECTION */}
|
||||
<div className='grid md:grid-cols-2'>
|
||||
<div className="my-2 md:flex">
|
||||
<Detail
|
||||
label="Date"
|
||||
value={
|
||||
(details.offer_added && details.offer_added?.split(" ")[0]) ||
|
||||
"default"
|
||||
}
|
||||
/>
|
||||
<div className='bg-[#FFFDEE]'>
|
||||
<div className='grid md:grid-cols-2'>
|
||||
<div className="my-2 md:flex">
|
||||
<label className='job-label w-full md:w-[150px] md:text-right'>Date :</label>
|
||||
<p className={`p-1 w-full md:w-3/4 text-sm text-slate-900 dark:text-white`}>
|
||||
{
|
||||
(details.offer_added && details.offer_added?.split(" ")[0]) ||
|
||||
"default"
|
||||
}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="my-2 md:flex">
|
||||
<label className='job-label w-full md:w-[150px] md:text-right'>Expire :</label>
|
||||
<p className={`p-1 w-full md:w-3/4 text-sm text-slate-900 dark:text-white`}>{details.expire && details.expire.split(" ")[0]}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="my-2 md:flex">
|
||||
<Detail
|
||||
label="Offer Expire"
|
||||
value={details.expire && details.expire.split(" ")[0]}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className='grid md:grid-cols-2'>
|
||||
<div className="my-2 md:flex">
|
||||
<label className='job-label w-full md:w-[150px] md:text-right'>Reward :</label>
|
||||
<p className={`p-1 w-full md:w-3/4 text-sm text-slate-900 dark:text-white`}>{thePrice}</p>
|
||||
</div>
|
||||
|
||||
<div className='grid md:grid-cols-2'>
|
||||
<div className="my-2 md:flex">
|
||||
<Detail label="Reward" value={thePrice} />
|
||||
</div>
|
||||
|
||||
<div className="my-2 md:flex">
|
||||
<Detail
|
||||
label="Duration"
|
||||
value={`${details.timeline_days} day(s)`}
|
||||
/>
|
||||
<div className="my-2 md:flex">
|
||||
<label className='job-label w-full md:w-[150px] md:text-right'>Duration :</label>
|
||||
<p className={`p-1 w-full md:w-3/4 text-sm text-slate-900 dark:text-white`}>{`${details.timeline_days} day(s)`}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -182,7 +181,7 @@ function OfferJobPopout({ details, onClose, situation }) {
|
||||
</p>
|
||||
|
||||
<div className="my-2 md:flex">
|
||||
<label className='job-label w-full md:w-[150px]'>Description</label>
|
||||
<label className='job-label w-full md:w-[150px]'>Description :</label>
|
||||
<p className={`p-1 w-full md:w-3/4 text-sm text-slate-900 dark:text-white max-h-[200px] overflow-y-auto`}>{details.description}</p>
|
||||
{/* <Detail label="Description" value={details.description} /> */}
|
||||
</div>
|
||||
@@ -193,7 +192,7 @@ function OfferJobPopout({ details, onClose, situation }) {
|
||||
{/* <label className='job-label w-full md:w-[150px]'>Detail</label>
|
||||
<p className={`p-1 w-full md:w-3/4 text-sm text-slate-900 dark:text-white min-h-[100px] max-h-[200px] overflow-y-auto border-2 rounded-md`}>{details.job_description || details.job_detail}</p> */}
|
||||
<label className="w-full text-slate-900 dark:text-white tracking-wide font-semibold">
|
||||
Delivery Detail
|
||||
Delivery Detail :
|
||||
</label>
|
||||
<textarea
|
||||
className={`p-2 w-full text-sm text-slate-900 dark:text-white bg-transparent outline-none border border-slate-300 rounded-md`}
|
||||
@@ -206,7 +205,7 @@ function OfferJobPopout({ details, onClose, situation }) {
|
||||
</div>
|
||||
|
||||
{/* ACTION SECTION */}
|
||||
<div className="p-4 w-full md:w-1/4 h-full">
|
||||
<div className="p-4 w-full md:col-span-1 h-full flex flex-col justify-between">
|
||||
<div className="my-3 md:flex flex-col md:justify-center">
|
||||
<h1 className='mb-2 text-base font-semibold text-slate-900 dark:text-white tracking-wide'>I understand the task</h1>
|
||||
{requestStatus.loading && requestStatus.trigger == "offer" ? (
|
||||
|
||||
Reference in New Issue
Block a user