Adjust MFA pending hint messaging (#591)
This commit is contained in:
parent
f2231cfd8f
commit
f662ce7d47
@ -104,8 +104,7 @@ export default function PanelLayout({ children }: { children: React.ReactNode })
|
||||
<main className="flex flex-1 flex-col space-y-6 bg-[var(--color-surface-translucent)] px-3 py-5 text-[var(--color-text)] transition-colors sm:px-4 md:px-6 lg:px-8">
|
||||
{requiresSetup ? (
|
||||
<div className="rounded-[var(--radius-lg)] border border-[color:var(--color-warning-muted)] bg-[var(--color-warning-muted)] p-4 text-sm text-[var(--color-warning-foreground)] transition-colors">
|
||||
<p className="font-semibold">{copy.pendingHint}</p>
|
||||
<p className="mt-1 text-sm">{copy.lockedMessage}</p>
|
||||
<p className="text-sm">{copy.lockedMessage}</p>
|
||||
<div className="mt-3 flex flex-wrap gap-2 text-xs">
|
||||
<button
|
||||
type="button"
|
||||
|
||||
@ -435,7 +435,7 @@ export default function MfaSetupPanel() {
|
||||
return (
|
||||
<Card>
|
||||
<h2 className="text-xl font-semibold text-[var(--color-text)]">{copy.title}</h2>
|
||||
<p className="mt-2 text-sm text-[var(--color-text-subtle)]">{copy.pendingHint}</p>
|
||||
<p className="mt-2 text-sm text-[var(--color-text-subtle)]">{copy.subtitle}</p>
|
||||
</Card>
|
||||
)
|
||||
}
|
||||
@ -478,7 +478,7 @@ export default function MfaSetupPanel() {
|
||||
{displayStatus?.totpEnabled ? copy.summary.manage : copy.summary.bind}
|
||||
</button>
|
||||
{requiresSetup ? (
|
||||
<p className="text-xs text-[var(--color-warning-foreground)]">{copy.pendingHint}</p>
|
||||
<p className="text-xs text-[var(--color-warning-foreground)]">{copy.lockedMessage}</p>
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
@ -548,7 +548,7 @@ export default function MfaSetupPanel() {
|
||||
) : (
|
||||
<div className="space-y-5">
|
||||
<p className="rounded-lg border border-[color:var(--color-warning-muted)] bg-[var(--color-warning-muted)] p-3 text-sm text-[var(--color-warning-foreground)]">
|
||||
{hasPendingMfa ? copy.pendingHint : copy.subtitle}
|
||||
{hasPendingMfa ? copy.lockedMessage : copy.subtitle}
|
||||
</p>
|
||||
|
||||
{lockoutActive ? (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user