From 690f4968072bf372cc4f75b31773d169c6ec8f64 Mon Sep 17 00:00:00 2001 From: Ebube Date: Wed, 12 Jul 2023 19:01:27 +0100 Subject: [PATCH] Add New Card Layout --- .../Helpers/Inputs/InputCom/index.jsx | 4 +- src/components/MyWallet/AddFundDollars.jsx | 304 +++++++++--------- 2 files changed, 152 insertions(+), 156 deletions(-) diff --git a/src/components/Helpers/Inputs/InputCom/index.jsx b/src/components/Helpers/Inputs/InputCom/index.jsx index 77ed8e1..fad4237 100644 --- a/src/components/Helpers/Inputs/InputCom/index.jsx +++ b/src/components/Helpers/Inputs/InputCom/index.jsx @@ -97,7 +97,7 @@ export default function InputCom({ dir={direction} /> {iconName && ( -
+
{iconName.split(" ").map((item, index) => ( ))} @@ -105,7 +105,7 @@ export default function InputCom({ )} {passIcon && (
diff --git a/src/components/MyWallet/AddFundDollars.jsx b/src/components/MyWallet/AddFundDollars.jsx index ea74ef7..3c8005f 100644 --- a/src/components/MyWallet/AddFundDollars.jsx +++ b/src/components/MyWallet/AddFundDollars.jsx @@ -7,6 +7,7 @@ import LoadingSpinner from "../Spinners/LoadingSpinner"; import { Form, Formik } from "formik"; import { useSelector } from "react-redux"; import * as Yup from "yup"; +import Icons from "../Helpers/Icons"; const validationSchema = Yup.object().shape({ name: Yup.string() @@ -222,25 +223,8 @@ function AddFundDollars(props) {

Bank **************{item.digits}

- {/*
-

- {item.added} -

-

- Verified -

-
*/}
- {/* - - */} ))} @@ -275,13 +259,14 @@ function AddFundDollars(props) {
{/* inputs starts here */} {/* Name */} -
+

{`${firstname} ${lastname}`}

-
+ + {/*
)} +
*/} + +
+ {/* CARD NUMBER */} +
+ + {props.errors.cardNum && + props.touched.cardNum && ( +

+ {props.errors.cardNum} +

+ )} +
+ {/* EXPIRE YEAR, YEAR */} +
+
+
+
+ +
+
+ +
+
+ {props.errors.expirationMonth && + props.touched.expirationMonth && ( +

+ {props.errors.expirationMonth} +

+ )} +
+
+
+
+ +
+
+ +
+
+ {props.errors.expirationYear && + props.touched.expirationYear && ( +

+ {props.errors.expirationYear} +

+ )} +
+
- {/* CARD NUMBER */} -
- - {props.errors.cardNum && - props.touched.cardNum && ( -

- {props.errors.cardNum} -

- )} -
- {/* EXPIRE YEAR, YEAR AND CVV */} -
-
-
-
- -
-
- -
-
- {props.errors.expirationMonth && - props.touched.expirationMonth && ( -

- {props.errors.expirationMonth} -

- )} -
-
-
-
- -
-
- -
-
- {props.errors.expirationYear && - props.touched.expirationYear && ( -

- {props.errors.expirationYear} -

- )} -
-
+
+ {/* Address AND CVV */} +
)}
-
- {/* Address */} -
- - {props.errors.address && - props.touched.address && ( -

- {props.errors.address} -

- )} +
+ + {props.errors.address && + props.touched.address && ( +

+ {props.errors.address} +

+ )} +
{/* postal code and state */} -
+
*/} -
+