Compare commits

..

6 Commits

Author SHA1 Message Date
Daniel Luiz Alves
f63105c5eb [Release] v3.2.5-beta (#320) 2025-10-21 13:47:12 -03:00
Daniel Luiz Alves
5fe6434027 [Release] v3.2.4-beta (#310) 2025-10-20 14:54:53 -03:00
Daniel Luiz Alves
94e021d8c6 [RELEASE] v3.2.3-beta #278 2025-10-02 10:22:11 -03:00
Daniel Luiz Alves
f3aeaf66df [RELEASE] v3.2.2-beta (#270)
Co-authored-by: Tommy Johnston <tommy@timmygstudios.com>
2025-09-25 15:08:35 -03:00
Daniel Luiz Alves
331624e2f2 UPDATE LICENCE (#252) 2025-09-09 18:28:33 -03:00
Daniel Luiz Alves
ba512ebe95 [RELEASE] v3.2.1-beta (#250) 2025-09-09 16:30:20 -03:00

View File

@@ -121,7 +121,7 @@ export function TwoFactorForm() {
<CardDescription>{status.enabled ? t("twoFactor.enabled") : t("twoFactor.description")}</CardDescription>
</CardHeader>
<CardContent className="space-y-4">
<div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4">
<div className="flex items-center justify-between">
<div>
<p className="font-medium">
{t("twoFactor.status.label")}{" "}
@@ -133,29 +133,19 @@ export function TwoFactorForm() {
</p>
)}
</div>
<div className="flex flex-col sm:flex-row gap-2 w-full sm:w-auto">
<div className="flex gap-2">
{status.enabled ? (
<>
<Button
variant="outline"
onClick={generateNewBackupCodes}
disabled={isLoading}
className="w-full sm:w-auto"
>
<Button variant="outline" onClick={generateNewBackupCodes} disabled={isLoading}>
<IconKey className="h-4 w-4" />
{t("twoFactor.backupCodes.generateNew")}
</Button>
<Button
variant="destructive"
onClick={() => setIsDisableModalOpen(true)}
disabled={isLoading}
className="w-full sm:w-auto"
>
<Button variant="destructive" onClick={() => setIsDisableModalOpen(true)} disabled={isLoading}>
{t("twoFactor.buttons.disable2FA")}
</Button>
</>
) : (
<Button onClick={startSetup} disabled={isLoading} className="w-full sm:w-auto">
<Button onClick={startSetup} disabled={isLoading}>
<IconShield className="h-4 w-4" />
{t("twoFactor.buttons.enable2FA")}
</Button>