From d51c9dc55d4448fc8422a12cf3ed4265b7e1c759 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Fri, 12 May 2023 21:07:17 +0100 Subject: [PATCH] delete job api implementation --- src/components/AddJob/AddJob.jsx | 14 +++++++++++--- src/components/jobPopout/DeleteJobPopout.jsx | 11 +++++++---- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/components/AddJob/AddJob.jsx b/src/components/AddJob/AddJob.jsx index 479bee6..61cb8fc 100644 --- a/src/components/AddJob/AddJob.jsx +++ b/src/components/AddJob/AddJob.jsx @@ -13,7 +13,7 @@ const validationSchema = Yup.object().shape({ .max(25, "Maximum 25 characters") .required("Country is required"), price: Yup.number() - .typeError("you must specify a number") + .typeError("you must specify a number") .min(1, "Price must be greater than 0") .required("Price is required"), title: Yup.string() @@ -36,7 +36,7 @@ const validationSchema = Yup.object().shape({ let initialValues = { // initial values for formik country: '', - price: '', + price: 0, title: '', description: '', job_detail: '', @@ -137,8 +137,10 @@ function AddJob() {