Commit ef947ee1 by Arjun Jhukal

updated the button for the kyc verification

parent 33f8844d
...@@ -8,6 +8,7 @@ import { Box, Button, Modal } from "@mui/material"; ...@@ -8,6 +8,7 @@ import { Box, Button, Modal } from "@mui/material";
import { BitcoinRefresh, SecuritySafe, TickCircle } from "@wandersonalwes/iconsax-react"; import { BitcoinRefresh, SecuritySafe, TickCircle } from "@wandersonalwes/iconsax-react";
import { FormikProps } from "formik"; import { FormikProps } from "formik";
import Image from "next/image"; import Image from "next/image";
import Link from "next/link";
import { useState } from "react"; import { useState } from "react";
import { WithdrawlFormValues } from "."; import { WithdrawlFormValues } from ".";
import { RenderFields } from "./renderFields"; import { RenderFields } from "./renderFields";
...@@ -69,12 +70,11 @@ export default function WithdrawlModal({ ...@@ -69,12 +70,11 @@ export default function WithdrawlModal({
"payment_fields", "payment_fields",
fetchedFields.map((item) => ({ fetchedFields.map((item) => ({
...item, ...item,
value: "", value: item.value || "",
})) }))
); );
} catch (e: any) { } catch (e: any) {
dispatch( dispatch(
showToast({ showToast({
...@@ -139,7 +139,9 @@ export default function WithdrawlModal({ ...@@ -139,7 +139,9 @@ export default function WithdrawlModal({
<> <>
<div className="flex flex-col md:grid grid-cols-2 gap-4"> <div className="flex flex-col md:grid grid-cols-2 gap-4">
{fields.map((field) => ( {fields.map((field) => (
<RenderFields key={field.token} field={field} formik={formik} /> <div className={field.type === "IDSelfieCollection" ? "col-span-2" : "col-span-1"} key={field.token}>
{field.type === "IDSelfieCollection" ? <Link href={field.value} className="bg-primary-grad ss-btn">{field.label}</Link> : <RenderFields field={field} formik={formik} />}
</div>
))} ))}
</div> </div>
<div className="flex gap-3 mt-4"> <div className="flex gap-3 mt-4">
......
...@@ -63,7 +63,7 @@ export interface MasspayPaymentFields { ...@@ -63,7 +63,7 @@ export interface MasspayPaymentFields {
is_required: boolean; is_required: boolean;
label: string; label: string;
validation: string; validation: string;
type: "BillReferenceNumber" | "BankAccountType" | "BankAccountNumber" | "BankRoutingNumber" | "SocialSecurity" | "DateOfBirth" | "Address1"; type: "BillReferenceNumber" | "BankAccountType" | "BankAccountNumber" | "BankRoutingNumber" | "SocialSecurity" | "DateOfBirth" | "Address1" | "IDSelfieCollection";
expected_value: string; expected_value: string;
value: string; value: string;
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment