From 5337b2d773457ee854a230b1a74c7faa096d6505 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 10 Jul 2026 23:35:11 +0000 Subject: [PATCH] fix(TMCU-1046): remove useElevatedSurface shim from onboarding BottomSheets MMDS BottomSheet now handles pure-black elevated surface internally. Remove redundant useElevatedSurface() calls from OnboardingSheet and SelectSRPBottomSheet. Co-authored-by: George Marshall --- app/components/Views/OnboardingSheet/index.tsx | 11 ++--------- .../Views/SelectSRP/SelectSRPBottomSheet.tsx | 8 +------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/app/components/Views/OnboardingSheet/index.tsx b/app/components/Views/OnboardingSheet/index.tsx index 4e259fee119..a321c0b7499 100644 --- a/app/components/Views/OnboardingSheet/index.tsx +++ b/app/components/Views/OnboardingSheet/index.tsx @@ -2,7 +2,6 @@ import React, { useCallback, useRef } from 'react'; import { strings } from '../../../../locales/i18n'; import { useTheme } from '../../../util/theme'; import { AppThemeKey } from '../../../util/theme/models'; -import { useElevatedSurface } from '../../../util/theme/themeUtils'; import GoogleIcon from 'images/google.svg'; import AppleIcon from 'images/apple.svg'; @@ -58,7 +57,7 @@ const OnboardingSheet = () => { onPressContinueWithTelegram, createWallet = false, } = params ?? {}; - const { colors } = useTheme(); + const { colors, themeAppearance } = useTheme(); const tw = useTailwind(); const onPressCreateAction = () => { if (onPressCreate) { @@ -110,16 +109,10 @@ const OnboardingSheet = () => { goTo(url, strings('onboarding.privacy_notice')); }; - const { themeAppearance } = useTheme(); - const surfaceClass = useElevatedSurface(); const isDark = themeAppearance === AppThemeKey.dark; return ( - + { const bottomSheetRef = useRef(null); const navigation = useNavigation(); - const surfaceClass = useElevatedSurface(); const goBack = useCallback(() => { goBackIfFocused(navigation); }, [navigation]); return ( - +