import React from "react"; import * as Yup from "yup"; import { Form, Formik } from "formik"; import { InputCompOne } from "../shared"; // To get the validation schema const validationSchema = Yup.object().shape({ bvn: Yup.string() .required("BVN is required") .test("no-e", "Invalid number", (value:any) => { if (value && /^[0-9]*$/.test(value) == false) { return false; } return true; }) .min(11, "must be 11 digits") .max(11, "must be 11 digits") }); // initial values for formik let initialValues = { bvn: '' }; type Props = { handleNextStep:()=>any } const BVN = ({handleNextStep}:Props) => { const firstInputRef = React.useRef(null); const handleSubmit = (values:any) => { console.log('values', values) handleNextStep() }; return ( {(props:any) => (

Let’s Get You Started

***Every personal information attached to your BVN is safe and secured. It is only inportant for us to verify your information and also give you access to your application profile/account

)}
); }; export default BVN;