rearranged add job

This commit was merged in pull request #719.
This commit is contained in:
victorAnumudu
2024-05-13 11:57:35 +01:00
parent 1e0af67542
commit 89aa5e0aef
3 changed files with 44 additions and 8 deletions
+39 -3
View File
@@ -114,7 +114,7 @@ function AddJob({ popUpHandler, categories }) {
id="country" id="country"
name="country" name="country"
value={props.values.country} value={props.values.country}
className={`input-field p-2 mt-3 rounded-md placeholder:text-base text-dark-gray dark:text-white w-full h-10 bg-slate-100 dark:bg-[#11131F] focus:ring-0 focus:outline-none border`} className={`input-field p-2 mt-3 rounded-full placeholder:text-base text-dark-gray w-full h-[42px] bg-slate-100 focus:ring-0 focus:outline-none border`}
onChange={props.handleChange} onChange={props.handleChange}
onBlur={props.handleBlur} onBlur={props.handleBlur}
disabled={walletDetails.data.length == 1} disabled={walletDetails.data.length == 1}
@@ -177,6 +177,42 @@ function AddJob({ popUpHandler, categories }) {
} }
/> />
</div> </div>
{/* Timeline */}
<div className="field w-full">
<label
className="job-label job-label-flex"
htmlFor="timeline_days"
>
Timeline
<span className="text-green-700 text-[12px] tracking-wide">
- Duration
</span>
</label>
<Field
component="select"
name="timeline_days"
className={`input-field p-2 mt-3 rounded-full placeholder:text-base text-dark-gray w-full h-[42px] bg-slate-100 focus:ring-0 focus:outline-none border ${
props.errors.timeline_days &&
props.touched.timeline_days
? "border-[#ff0a0a63] shadow-red-500 animate-shake"
: "dark:border-[#5e6278]"
}`}
value={props.values.timeline_days}
>
<option value="" className='text-slate-500 text-lg'>Select Duration</option>
{publicArray.map(({ name, duration }, idx) => (
<option
key={idx}
className="text-slate-500 text-lg"
value={duration}
>
{name}
</option>
))}
</Field>
</div>
</div> </div>
{/* Title */} {/* Title */}
@@ -288,7 +324,7 @@ function AddJob({ popUpHandler, categories }) {
</div> </div>
</div> </div>
<div className="field w-full mb-[5px]"> {/* <div className="field w-full mb-[5px]">
<div className={`flex items-center justify-between mb-2.5`}> <div className={`flex items-center justify-between mb-2.5`}>
<label <label
className="job-label" className="job-label"
@@ -323,7 +359,7 @@ function AddJob({ popUpHandler, categories }) {
</option> </option>
))} ))}
</Field> </Field>
</div> </div> */}
{/* inputs ends here */} {/* inputs ends here */}
</div> </div>
</div> </div>
@@ -93,9 +93,9 @@ const FamilyWaitlist = memo(
</div> </div>
</div> </div>
<div className="px-2 flex flex-col items-center justify-center"> <div className="px-2 flex flex-col items-center justify-center">
<p className="text-sm font-bold text-dark-gray dark:text-white"> {/* <p className="text-sm font-bold text-dark-gray dark:text-white">
{addedDate} {addedDate}
</p> </p> */}
<p className="text-xs py-1.5 w-[70px] cursor-default tracking-wide rounded-full bg-gold text-white flex justify-center items-center"> <p className="text-xs py-1.5 w-[70px] cursor-default tracking-wide rounded-full bg-gold text-white flex justify-center items-center">
{value.status_text} {value.status_text}
</p> </p>
@@ -302,15 +302,15 @@ const EditJobPopoutNew = ({
<Field <Field
component="select" component="select"
name="timeline_days" name="timeline_days"
className={`input-field p-2 mt-3 rounded-full placeholder:text-base text-dark-gray w-full h-[42px] bg-slate-100 focus:ring-0 focus:outline-none ${ className={`input-field p-2 mt-3 rounded-full placeholder:text-base text-dark-gray w-full h-[42px] bg-slate-100 focus:ring-0 focus:outline-none border ${
props.errors.timeline_days && props.errors.timeline_days &&
props.touched.timeline_days props.touched.timeline_days
? "border-[#ff0a0a63] shadow-red-500 border-[0.5px] animate-shake" ? "border-[#ff0a0a63] shadow-red-500 border-[0.5px] animate-shake"
: "border border-[#f5f8fa] dark:border-[#5e6278]" : "dark:border-[#5e6278]"
}`} }`}
value={props.values.timeline_days} value={props.values.timeline_days}
> >
<option value="">Select Duration</option> <option value="" className='text-slate-500 text-lg'>Select Duration</option>
{publicArray.map(({ name, duration }, idx) => ( {publicArray.map(({ name, duration }, idx) => (
<option <option
key={duration} key={duration}