feat(frontend): add confirmation before force log out

This commit is contained in:
sam 2024-10-02 16:49:33 +02:00
parent e030342358
commit 40da4865bc
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
6 changed files with 65 additions and 24 deletions

View file

@ -44,7 +44,7 @@ function EmailSettings({ user }: { user: MeUser }) {
)}
{emails.length < 3 && (
<p>
{/* @ts-expect-error using as=Link causes an error here, even though it runs completely fine */}
{/* @ts-expect-error as=Link */}
<Button variant="primary" as={Link} to="/settings/auth/add-email">
{emails.length === 0
? t("settings.auth.form.add-first-email")