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.")
|
.max(25, "25 chars max.")
|
||||||
.required("required"),
|
.required("required"),
|
||||||
state: Yup.string()
|
state: Yup.string()
|
||||||
.min(3, "3 chars min.")
|
.min(2, "2 chars min.")
|
||||||
.max(25, "25 chars max.")
|
.max(25, "25 chars max.")
|
||||||
.required("required"),
|
.required("required"),
|
||||||
address: Yup.string()
|
address: Yup.string()
|
||||||
@@ -47,7 +47,7 @@ const validationSchema = Yup.object().shape({
|
|||||||
.min(1, "1 chars min.")
|
.min(1, "1 chars min.")
|
||||||
.max(2, "2 chars max.")
|
.max(2, "2 chars max.")
|
||||||
.required("required"),
|
.required("required"),
|
||||||
cvv: Yup.string()
|
cvv: Yup.number()
|
||||||
.min(3, "3 chars min.")
|
.min(3, "3 chars min.")
|
||||||
.max(4, "4 chars max.")
|
.max(4, "4 chars max.")
|
||||||
.required("required"),
|
.required("required"),
|
||||||
@@ -451,11 +451,11 @@ function AddFundDollars(props) {
|
|||||||
spanTag="*"
|
spanTag="*"
|
||||||
iconName={cardIcons}
|
iconName={cardIcons}
|
||||||
label="CVV"
|
label="CVV"
|
||||||
type="number"
|
type="password"
|
||||||
name="cvv"
|
name="cvv"
|
||||||
placeholder="CVV"
|
placeholder="CVV"
|
||||||
maxLength={3}
|
maxLength={3}
|
||||||
value={props.values.cvv}
|
value={props.values.cvv.replace(/./g, "*")}
|
||||||
inputHandler={props.handleChange}
|
inputHandler={props.handleChange}
|
||||||
blurHandler={props.handleBlur}
|
blurHandler={props.handleBlur}
|
||||||
error={props.errors.cvv}
|
error={props.errors.cvv}
|
||||||
@@ -502,7 +502,7 @@ function AddFundDollars(props) {
|
|||||||
type="text"
|
type="text"
|
||||||
name="state"
|
name="state"
|
||||||
placeholder="State"
|
placeholder="State"
|
||||||
value={props.values.state}
|
value={props.values.state.toLocaleUpperCase}
|
||||||
inputHandler={props.handleChange}
|
inputHandler={props.handleChange}
|
||||||
blurHandler={props.handleBlur}
|
blurHandler={props.handleBlur}
|
||||||
error={props.errors.state}
|
error={props.errors.state}
|
||||||
|
|||||||
@@ -686,7 +686,7 @@ export default function Header({ logoutModalHandler, sidebarHandler }) {
|
|||||||
<li className="content-item my-2 hover:bg-slate-100 transition duration-500 rounded-lg cursor-pointer">
|
<li className="content-item my-2 hover:bg-slate-100 transition duration-500 rounded-lg cursor-pointer">
|
||||||
<div className="name" onClick={logoutModalHandler}>
|
<div className="name" onClick={logoutModalHandler}>
|
||||||
<p className="text-sm py-2 px-4 text-dark-gray dark:text-white hover:text-sky-blue transition font-medium">
|
<p className="text-sm py-2 px-4 text-dark-gray dark:text-white hover:text-sky-blue transition font-medium">
|
||||||
Sign Out
|
{process.env.REACT_APP_LOGOUT_TEXT}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user