diff --git a/src/app/sign-in/components/OtpInputForm.tsx b/src/app/sign-in/components/OtpInputForm.tsx index c9e79d55..51dd59c5 100644 --- a/src/app/sign-in/components/OtpInputForm.tsx +++ b/src/app/sign-in/components/OtpInputForm.tsx @@ -2,7 +2,6 @@ import { Anchor } from '@/components/Anchor'; import { Button } from '@/components/Button'; -import { TextField } from '@/components/TextField'; import { useAuth } from '@/hooks'; import { gtSuper } from '@/utils/font'; import { FC, useEffect, useRef, useState } from 'react'; @@ -151,7 +150,7 @@ export const OtpInputForm: FC = ({ currentEmail, currentWallet }) => { {Array(6) .fill('') .map((_, i) => ( - = ({ currentEmail, currentWallet }) => { }} readOnly={false} value={otp[i]} - onChange={(e) => handleChange(e.target.value, i)} - onKeyDown={(e) => handleKeyDown(e, i)} - onPaste={(e) => handlePaste(e)} + onChange={(e: React.ChangeEvent) => + handleChange(e.target.value, i) + } + onKeyDown={(e: React.KeyboardEvent) => + handleKeyDown(e, i) + } + onPaste={(e: React.ClipboardEvent) => handlePaste(e)} /> ))} diff --git a/src/app/sign-in/components/View/View.css b/src/app/sign-in/components/View/View.css index da8a5ffd..27156942 100644 --- a/src/app/sign-in/components/View/View.css +++ b/src/app/sign-in/components/View/View.css @@ -15,12 +15,8 @@ .otp-inputs { @apply flex justify-center gap-x-4; - .text-field { - @apply w-12 h-12 rounded-md bg-muted p-0 justify-center items-center; - } - .otp-input { - @apply text-center text-2xl text-foreground h-full; + @apply w-12 h-12 text-center text-2xl text-foreground bg-muted border border-border rounded-md outline-none focus:ring-2 focus:ring-ring; } } .sign-in__input {