From 505e62aa610e870053985b1c890e3f52c7183c72 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Thu, 19 Sep 2024 22:00:51 -0400 Subject: [PATCH] Basic disabling of TFA --- .../sidebar/organization-selector.tsx | 2 +- .../dashboard/user/profile/tier-setting.tsx | 2 +- .../user/settings/tfa/tfa-setting.tsx | 60 ++++++++++++++----- .../dashboard/user/user-settings-header.tsx | 2 +- 4 files changed, 47 insertions(+), 19 deletions(-) diff --git a/src/components/dashboard/sidebar/organization-selector.tsx b/src/components/dashboard/sidebar/organization-selector.tsx index a85e905..af0bd6f 100644 --- a/src/components/dashboard/sidebar/organization-selector.tsx +++ b/src/components/dashboard/sidebar/organization-selector.tsx @@ -95,7 +95,7 @@ const OrganizationSelector = (): ReactElement => { - + diff --git a/src/components/dashboard/user/profile/tier-setting.tsx b/src/components/dashboard/user/profile/tier-setting.tsx index 4335591..1747c6e 100644 --- a/src/components/dashboard/user/profile/tier-setting.tsx +++ b/src/components/dashboard/user/profile/tier-setting.tsx @@ -33,7 +33,7 @@ const TierSetting = (): ReactElement => { {capitalizeWords(user?.tier)} - + ) : ( - { - if (open) { - setupTfa(); - } else if (enabledTfa) { - toast("Two-Factor Auth", { - icon: "🎉", - description: - "Successfully enabled two-factor auth on your account!", - }); - router.push("/dashboard"); - } - }} - > +