fix and update
This commit is contained in:
@@ -23,6 +23,8 @@ import { useToast } from '@/components/id/toast-provider';
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { PinInput } from '@/components/ui/pin-input';
|
||||
import { isPinInputComplete } from '@/lib/pin-input';
|
||||
|
||||
import { OtpInput } from '@/components/ui/otp-input';
|
||||
|
||||
@@ -1369,7 +1371,7 @@ export default function LoginPage() {
|
||||
|
||||
<form onSubmit={handlePinSubmit} className="space-y-3">
|
||||
|
||||
<Input
|
||||
<PinInput
|
||||
|
||||
className="h-[58px] border-[#555762] bg-transparent text-center text-lg tracking-[0.4em] text-white placeholder:text-[#8f92a0]"
|
||||
|
||||
@@ -1377,7 +1379,7 @@ export default function LoginPage() {
|
||||
|
||||
value={pin}
|
||||
|
||||
onChange={(event) => setPin(event.target.value)}
|
||||
onChange={setPin}
|
||||
|
||||
required
|
||||
|
||||
@@ -1387,7 +1389,7 @@ export default function LoginPage() {
|
||||
|
||||
/>
|
||||
|
||||
<Button variant="white" size="lg" className="w-full rounded-[18px] text-base" disabled={isSubmitting}>
|
||||
<Button variant="white" size="lg" className="w-full rounded-[18px] text-base" disabled={isSubmitting || !isPinInputComplete(pin)}>
|
||||
|
||||
{isSubmitting ? 'Проверяем...' : 'Подтвердить PIN'}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user