fix(social): remove useElevatedSurface shim from Quick Buy BottomSheet (TMCU-1050)#33164
fix(social): remove useElevatedSurface shim from Quick Buy BottomSheet (TMCU-1050)#33164georgewrmarshall wants to merge 1 commit into
Conversation
…t (TMCU-1050) MMDS BottomSheetDialog now handles pure-black elevated surface styling internally. Remove the redundant useElevatedSurface() shim from the Social Leaderboard Quick Buy sheet. Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
This is a minor visual/styling change that removes an elevated surface styling class from the QuickBuy bottom sheet dialog. While primarily cosmetic (removing a CSS class), it does affect the visual appearance of the QuickBuy bottom sheet in the Trader Position flow. The QuickBuy component is part of the SocialLeaderboard/TraderPositionView feature which relates to the Perps trading functionality. SmokePerps covers the Add Funds flow and perps interface, which likely exercises this QuickBuy component. SmokeWalletPlatform is selected because Perps is a section inside the Trending tab. No performance tests are warranted as this is a styling-only change with no impact on rendering performance, data fetching, or app responsiveness. Performance Test Selection: |
|
| onClose={onClose} | ||
| twClassName={surfaceClass} | ||
| > | ||
| <BottomSheetDialog ref={bottomSheetRef} onClose={onClose}> |
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 here. useElevatedSurface returned bg-alternative in pure-black dark mode, which BottomSheetDialog now applies via usePureBlack without callsite overrides.



Description
MMDS
BottomSheetDialognow handles pure-black elevated surface styling internally. This PR removes the redundantuseElevatedSurface()shim from the Social Leaderboard Quick Buy bottom sheet so it relies on the design-system component instead of duplicating surface logic.Updated file:
app/components/Views/SocialLeaderboard/TraderPositionView/components/QuickBuy/QuickBuyRoot.tsxChangelog
CHANGELOG entry: null
Related issues
Fixes: TMCU-1050
Manual testing steps
N/A for automated-only cleanup; visual QA recommended on device with pure black preview enabled.
Screenshots/Recordings
N/A — internal styling cleanup with no user-facing copy or layout changes. Pure black visual QA should be done on device.
Before
N/A
After
N/A
Pre-merge author checklist
Performance checks (if applicable)
Pre-merge reviewer checklist