refactor: improve formatting, type safety, and component organization
- Adjusted inconsistent formatting for better readability across components and services. - Enhanced type safety by adding placeholders for ignored error parameters and improving types across services. - Improved component organization by reordering imports consistently and applying formatting updates in UI components.
This commit is contained in:
@@ -108,7 +108,10 @@ export default function LoginPage() {
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
{show2fa ? (
|
||||
<form onSubmit={onOtpSubmit} className="space-y-6 flex flex-col items-center">
|
||||
<form
|
||||
onSubmit={onOtpSubmit}
|
||||
className="space-y-6 flex flex-col items-center"
|
||||
>
|
||||
<InputOTP
|
||||
maxLength={6}
|
||||
value={otpValue}
|
||||
@@ -126,7 +129,11 @@ export default function LoginPage() {
|
||||
<InputOTPSlot index={5} />
|
||||
</InputOTPGroup>
|
||||
</InputOTP>
|
||||
<Button type="submit" className="w-full" disabled={loading || otpValue.length !== 6}>
|
||||
<Button
|
||||
type="submit"
|
||||
className="w-full"
|
||||
disabled={loading || otpValue.length !== 6}
|
||||
>
|
||||
{loading ? "Vérification..." : "Vérifier le code"}
|
||||
</Button>
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user