mirror of
				https://github.com/kyantech/Palmr.git
				synced 2025-11-03 21:43:20 +00:00 
			
		
		
		
	Compare commits
	
		
			6 Commits
		
	
	
		
			copilot/fi
			...
			v3.2.5-bet
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					f63105c5eb | ||
| 
						 | 
					5fe6434027 | ||
| 
						 | 
					94e021d8c6 | ||
| 
						 | 
					f3aeaf66df | ||
| 
						 | 
					331624e2f2 | ||
| 
						 | 
					ba512ebe95 | 
@@ -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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user