This commit was merged in pull request #207.
This commit is contained in:
2023-06-24 07:23:39 +01:00
parent 5a623dd147
commit 59945c28e4
6 changed files with 59 additions and 39 deletions
+10 -6
View File
@@ -127,7 +127,6 @@ function AddJob({ popUpHandler, categories }) {
getUserCountry();
}, []);
return (
<div className="add-job p-5 w-full bg-white rounded-md flex flex-col justify-between">
<Formik
@@ -237,7 +236,9 @@ function AddJob({ popUpHandler, categories }) {
value={props.values.description}
inputHandler={props.handleChange}
blurHandler={props.handleBlur}
errorBorder={props.errors.description && props.touched.description}
errorBorder={
props.errors.description && props.touched.description
}
/>
</div>
@@ -276,7 +277,10 @@ function AddJob({ popUpHandler, categories }) {
aria-labelledby="checked-group"
>
{Object.entries(categories).map(([key, value]) => (
<label key={key} className="flex gap-1 w-full items-center">
<label
key={key}
className="flex gap-1 w-full items-center"
>
<Field
type="checkbox"
name="category"
@@ -354,8 +358,8 @@ function AddJob({ popUpHandler, categories }) {
<div className="w-full h-[70px] border-t border-light-purple dark:border-[#5356fb29] flex justify-end items-center">
<div className="flex items-center space-x-4 mr-9">
<Link
to="/myjobs"
<button
type="button"
className="text-18 text-light-red tracking-wide "
>
<span
@@ -365,7 +369,7 @@ function AddJob({ popUpHandler, categories }) {
{" "}
Cancel
</span>
</Link>
</button>
{requestStatus.loading ? (
<LoadingSpinner size="8" color="sky-blue" />