Corrections made on AddFund and text variable for Header
This commit is contained in:
@@ -32,7 +32,7 @@ const validationSchema = Yup.object().shape({
|
||||
.max(25, "25 chars max.")
|
||||
.required("required"),
|
||||
state: Yup.string()
|
||||
.min(3, "3 chars min.")
|
||||
.min(2, "2 chars min.")
|
||||
.max(25, "25 chars max.")
|
||||
.required("required"),
|
||||
address: Yup.string()
|
||||
@@ -47,7 +47,7 @@ const validationSchema = Yup.object().shape({
|
||||
.min(1, "1 chars min.")
|
||||
.max(2, "2 chars max.")
|
||||
.required("required"),
|
||||
cvv: Yup.string()
|
||||
cvv: Yup.number()
|
||||
.min(3, "3 chars min.")
|
||||
.max(4, "4 chars max.")
|
||||
.required("required"),
|
||||
@@ -451,11 +451,11 @@ function AddFundDollars(props) {
|
||||
spanTag="*"
|
||||
iconName={cardIcons}
|
||||
label="CVV"
|
||||
type="number"
|
||||
type="password"
|
||||
name="cvv"
|
||||
placeholder="CVV"
|
||||
maxLength={3}
|
||||
value={props.values.cvv}
|
||||
value={props.values.cvv.replace(/./g, "*")}
|
||||
inputHandler={props.handleChange}
|
||||
blurHandler={props.handleBlur}
|
||||
error={props.errors.cvv}
|
||||
@@ -502,7 +502,7 @@ function AddFundDollars(props) {
|
||||
type="text"
|
||||
name="state"
|
||||
placeholder="State"
|
||||
value={props.values.state}
|
||||
value={props.values.state.toLocaleUpperCase}
|
||||
inputHandler={props.handleChange}
|
||||
blurHandler={props.handleBlur}
|
||||
error={props.errors.state}
|
||||
|
||||
Reference in New Issue
Block a user