From 374175867d74a9ef9fb4d3cb636891d7e8dac381 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 10 Jul 2026 23:32:57 +0000 Subject: [PATCH 1/2] fix(bridge): remove redundant useElevatedSurface from Bridge modals MMDS BottomSheet now handles pure-black elevated surface internally. Remove the useElevatedSurface shim (twClassName={surfaceClass}) from all Bridge-owned bottom sheet modals per TMCU-1039. Co-authored-by: George Marshall --- .../BatchSellDestinationTokenSelectorModal/index.tsx | 3 --- .../UI/Bridge/components/BatchSellFinalReviewModal/index.tsx | 3 --- .../components/BatchSellMinimumReceivedInfoModal/index.tsx | 3 --- .../Bridge/components/BatchSellNetworkFeeInfoModal/index.tsx | 3 --- .../UI/Bridge/components/BatchSellQuoteDetailsModal/index.tsx | 3 --- .../UI/Bridge/components/HighRateAlertModal/index.tsx | 3 --- .../UI/Bridge/components/MissingPriceModal/index.tsx | 3 --- .../UI/Bridge/components/PriceImpactModal/index.tsx | 4 +--- 8 files changed, 1 insertion(+), 24 deletions(-) diff --git a/app/components/UI/Bridge/components/BatchSellDestinationTokenSelectorModal/index.tsx b/app/components/UI/Bridge/components/BatchSellDestinationTokenSelectorModal/index.tsx index bd03756a8c1..1c06e9390e9 100644 --- a/app/components/UI/Bridge/components/BatchSellDestinationTokenSelectorModal/index.tsx +++ b/app/components/UI/Bridge/components/BatchSellDestinationTokenSelectorModal/index.tsx @@ -36,7 +36,6 @@ import { RootState } from '../../../../../reducers'; import { BridgeToken } from '../../types'; import { formatTokenBalance } from '../../utils'; import { BatchSellDestinationTokenSelectorModalSelectorsIDs } from './BatchSellDestinationTokenSelectorModal.testIds'; -import { useElevatedSurface } from '../../../../../util/theme/themeUtils'; const getTokenKey = (token: BridgeToken) => `${token.chainId}:${token.address}`; @@ -87,7 +86,6 @@ export function BatchSellDestinationTokenSelectorModal() { chainIds: destinationChainIds ?? (sourceChainId ? [sourceChainId] : undefined), }); - const surfaceClass = useElevatedSurface(); const handleClose = useCallback(() => { sheetRef.current?.onCloseBottomSheet(); @@ -106,7 +104,6 @@ export function BatchSellDestinationTokenSelectorModal() { ref={sheetRef} goBack={navigation.goBack} testID={BatchSellDestinationTokenSelectorModalSelectorsIDs.SHEET} - twClassName={surfaceClass} > (null); const [isTokenDetailsExpanded, setIsTokenDetailsExpanded] = useState(false); const trackBatchSellReviewModalSubmitted = @@ -433,7 +431,6 @@ export function BatchSellFinalReviewModal() { ref={sheetRef} testID={BatchSellFinalReviewModalSelectorsIDs.SHEET} goBack={navigation.goBack} - twClassName={surfaceClass} > (); @@ -23,13 +22,11 @@ export function BatchSellMinimumReceivedInfoModal() { const handleBack = sourceModal ? () => navigation.replace(sourceModal.screen, sourceModal.params) : undefined; - const surfaceClass = useElevatedSurface(); return ( (); @@ -23,13 +22,11 @@ export function BatchSellNetworkFeeInfoModal() { const handleBack = sourceModal ? () => navigation.replace(sourceModal.screen, sourceModal.params) : undefined; - const surfaceClass = useElevatedSurface(); return ( (); const sourceTokens = useSelector(selectBatchSellSourceTokens); - const surfaceClass = useElevatedSurface(); const batchSellQuoteData = useBatchSellQuoteData({ shouldUpdateBatchSellTrades: false, }); @@ -49,7 +47,6 @@ export function BatchSellQuoteDetailsModal() { { sheetRef.current?.onCloseBottomSheet(); @@ -51,7 +49,6 @@ export function HighRateAlertModal() { ref={sheetRef} goBack={goBack} testID={HighRateAlertModalSelectorsIDs.SHEET} - twClassName={surfaceClass} > { const sheetRef = useRef(null); const [loading, setLoading] = useState(false); const { location } = useParams(); - const surfaceClass = useElevatedSurface(); const sourceToken = useSelector(selectSourceToken); const tokenBalance = useLatestBalance({ address: sourceToken?.address, @@ -69,7 +67,6 @@ export const MissingPriceModal = () => { { const { goBack } = useNavigation(); @@ -43,7 +42,6 @@ export const PriceImpactModal = () => { const priceImpactViewData = usePriceImpactViewData( activeQuote?.quote.priceData?.priceImpact, ); - const surfaceClass = useElevatedSurface(); const isDangerousPriceImpact = useMemo( () => @@ -68,7 +66,7 @@ export const PriceImpactModal = () => { }, [confirmBridge]); return ( - + Date: Fri, 10 Jul 2026 23:43:47 +0000 Subject: [PATCH 2/2] style(bridge): fix Prettier formatting in MissingPriceModal Co-authored-by: George Marshall --- .../UI/Bridge/components/MissingPriceModal/index.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/components/UI/Bridge/components/MissingPriceModal/index.tsx b/app/components/UI/Bridge/components/MissingPriceModal/index.tsx index 78647d96312..d26008dbefe 100644 --- a/app/components/UI/Bridge/components/MissingPriceModal/index.tsx +++ b/app/components/UI/Bridge/components/MissingPriceModal/index.tsx @@ -64,10 +64,7 @@ export const MissingPriceModal = () => { }, [confirmBridge]); return ( - +