added signup authentication and signup otp verification

This commit is contained in:
victorAnumudu
2023-02-20 20:45:34 +01:00
parent 174be171c8
commit 9cb773d360
5 changed files with 242 additions and 14 deletions
@@ -1,6 +1,6 @@
import React, { useEffect } from "react";
export default function Otp() {
export default function Otp({handleChange}) {
useEffect(() => {
const otp = document.querySelector("#otp-inputs");
// eslint-disable-next-line no-restricted-syntax
@@ -25,6 +25,7 @@ export default function Otp() {
type="text"
maxLength={1}
id="otp"
onChange={handleChange}
/>
</div>
<div className="input-wrapper border border-light-purple dark:border-[#5356fb29] sm:w-14 sm:h-14 w-12 h-12 rounded-[50px] overflow-hidden relative ">
@@ -33,6 +34,7 @@ export default function Otp() {
type="text"
maxLength={1}
id="otp"
onChange={handleChange}
/>
</div>
<div className="input-wrapper border border-light-purple dark:border-[#5356fb29] sm:w-14 sm:h-14 w-12 h-12 rounded-[50px] overflow-hidden relative ">
@@ -41,6 +43,7 @@ export default function Otp() {
type="text"
maxLength={1}
id="otp"
onChange={handleChange}
/>
</div>
<div className="input-wrapper border border-light-purple dark:border-[#5356fb29] sm:w-14 sm:h-14 w-12 h-12 rounded-[50px] overflow-hidden relative ">
@@ -49,6 +52,7 @@ export default function Otp() {
type="text"
maxLength={1}
id="otp"
onChange={handleChange}
/>
</div>
<div className="input-wrapper border border-light-purple dark:border-[#5356fb29] sm:w-14 sm:h-14 w-12 h-12 rounded-[50px] overflow-hidden relative ">
@@ -57,6 +61,7 @@ export default function Otp() {
type="text"
maxLength={1}
id="otp"
onChange={handleChange}
/>
</div>
<div className="input-wrapper border border-light-purple dark:border-[#5356fb29] sm:w-14 sm:h-14 w-12 h-12 rounded-[50px] overflow-hidden relative ">
@@ -65,6 +70,7 @@ export default function Otp() {
type="text"
maxLength={1}
id="otp"
onChange={handleChange}
/>
</div>
</div>