fix(bridge): remove redundant useElevatedSurface from Bridge modals (TMCU-1039)#33158
fix(bridge): remove redundant useElevatedSurface from Bridge modals (TMCU-1039)#33158georgewrmarshall wants to merge 2 commits into
Conversation
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 <georgewrmarshall@users.noreply.github.com>
Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: The affected components are:
These changes affect the swap/bridge user flow, so SmokeSwap is the primary tag. Per SmokeSwap's description, SmokeConfirmations should also be selected since swap flows involve transaction confirmations. No other flows (staking, accounts, network, browser, snaps, etc.) are affected. The changes are low risk — they remove a styling prop, not business logic — but should be validated to ensure the bottom sheets still render correctly without the elevated surface class. Performance Test Selection: |
|
| @@ -106,7 +104,6 @@ export function BatchSellDestinationTokenSelectorModal() { | |||
| ref={sheetRef} | |||
| goBack={navigation.goBack} | |||
| testID={BatchSellDestinationTokenSelectorModalSelectorsIDs.SHEET} | |||
There was a problem hiding this comment.
MMDS BottomSheetDialog applies elevated surface styling internally since design-system-react-native 0.33, so twClassName={surfaceClass} was redundant at every Bridge modal callsite. useElevatedSurface returned bg-alternative in pure-black dark mode, matching what BottomSheetDialog now sets via usePureBlack. The other seven Bridge files in this PR are the same deletion with no additional behavior change.



Description
MMDS
BottomSheetnow applies the pure-black elevated surface internally, so Bridge modals no longer need theuseElevatedSurface()shim (twClassName={surfaceClass}).This PR removes the redundant hook import,
surfaceClassvariable, andtwClassNameprop from all eight Bridge-owned bottom sheet modals listed in TMCU-1039.Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TMCU-1039
Manual testing steps
N/A — mechanical cleanup only.
BottomSheetalready owns elevated-surface styling; no visual or behavioral logic changed beyond removing duplicatetwClassNamewiring.Screenshots/Recordings
N/A — no visual change expected; elevated surface styling is now sourced solely from MMDS
BottomSheet.Before
N/A
After
N/A
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an examplePre-merge reviewer checklist