mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
nit
This commit is contained in:
1 parent
072f8e62bd
commit
b646eb5db3
2 files changed
+3
-7
No files matched your search
+2
-2
@@ -17,8 +17,8 @@ export const GenerateRecoveryCodesModal = () => {
|
||||
<Admonition
|
||||
type="danger"
|
||||
layout="horizontal"
|
||||
title="You haven't generated recovery codes yet"
|
||||
description="Recovery codes are important to ensure you can recover your account if you loose access to your MFA."
|
||||
title="No recovery codes generated"
|
||||
description="Recovery codes let you access your account if you lose access to your MFA device"
|
||||
className="[&>div>div>div>div>p]:text-balance"
|
||||
actions={
|
||||
<>
|
||||
|
||||
@@ -62,7 +62,6 @@ export const RecoveryCodesModal = <T = unknown,>({
|
||||
a.click()
|
||||
document.body.removeChild(a)
|
||||
window.URL.revokeObjectURL(url)
|
||||
setCopied(true)
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
@@ -132,10 +131,7 @@ export const RecoveryCodesModal = <T = unknown,>({
|
||||
onClick={() =>
|
||||
copyToClipboard(
|
||||
codes.map((code) => formatRecoveryCode(code)).join('\n') ?? '',
|
||||
() => {
|
||||
setCopiedToClipboard(true)
|
||||
setCopied(true)
|
||||
}
|
||||
() => setCopiedToClipboard(true)
|
||||
)
|
||||
}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user