From cee984e5740b5eb4ca376063966d3635981dc5ae Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Fri, 22 Nov 2024 11:17:24 +0100 Subject: [PATCH] removal of unused var --- src/components/AddJob/AddJob.jsx | 10 +- src/components/AuthPages/AuthLayout2.jsx | 4 +- .../AuthPages/AuthProfile/index.jsx | 100 +++++++++--------- .../AuthPages/AuthRedirect/AppleRedirect.jsx | 22 ++-- .../AuthPages/AuthRedirect/FbookRedirect.jsx | 8 +- .../AuthPages/AuthRedirect/Redirect.jsx | 8 +- .../AuthPages/ForgotPassword/index.jsx | 2 +- .../AuthPages/ForgotPassword/index2.jsx | 6 +- 8 files changed, 80 insertions(+), 80 deletions(-) diff --git a/src/components/AddJob/AddJob.jsx b/src/components/AddJob/AddJob.jsx index 23e4339..5b07500 100644 --- a/src/components/AddJob/AddJob.jsx +++ b/src/components/AddJob/AddJob.jsx @@ -3,7 +3,7 @@ import { useDispatch, useSelector, usersService, - initialValues as IV, + // initialValues as IV, initialReqState, useState, tableReload, @@ -75,7 +75,7 @@ function AddJob({ popUpHandler, categories }) { // For form initial values const initialValues = { // initial values for formik - country: walletDetails.data.length == 1 ? walletDetails.data[0].country : '', + country: walletDetails.data.length === 1 ? walletDetails.data[0].country : '', price: "", title: "", description: "", @@ -117,7 +117,7 @@ function AddJob({ popUpHandler, categories }) { 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} onBlur={props.handleBlur} - disabled={walletDetails.data.length == 1} + disabled={walletDetails.data.length === 1} > {walletDetails?.loading ? ( ))} - ) : walletDetails.data.length == 1 ? + ) : walletDetails.data.length === 1 ? <> {walletDetails.data?.map((item, index) => (