From ed75bbbc9d5acc285da70e3424cc94dc5b7b6599 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 1 Nov 2025 15:25:40 +0000 Subject: [PATCH] feat: Hide MFA for non-moderators --- src/components/homepage/FeaturedParks.tsx | 4 +-- src/components/settings/SecurityTab.tsx | 34 +++++++++++++---------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/src/components/homepage/FeaturedParks.tsx b/src/components/homepage/FeaturedParks.tsx index 750a729b..57d0e423 100644 --- a/src/components/homepage/FeaturedParks.tsx +++ b/src/components/homepage/FeaturedParks.tsx @@ -145,7 +145,7 @@ export function FeaturedParks() {
- {topRated.data?.map((park) => ( + {topRatedParks.map((park) => (
- {mostRides.data?.map((park) => ( + {mostRidesParks.map((park) => ( ([]); @@ -370,21 +372,23 @@ export function SecurityTab() {
- {/* Two-Factor Authentication - Full Width */} - - -
- - Two-Factor Authentication -
- - Add an extra layer of security to your account with TOTP authentication - -
- - - -
+ {/* Two-Factor Authentication - Full Width (Moderators+ Only) */} + {isModerator() && ( + + +
+ + Two-Factor Authentication +
+ + Add an extra layer of security to your account with TOTP authentication + +
+ + + +
+ )} {/* Active Sessions - Full Width */}