added signup authentication and signup otp verification
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user