Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { useSelector } from 'react-redux';
import { MetaMetricsEvents } from '../../../../../../core/Analytics';
import { selectIsSubmittingTx } from '../../../../../../core/redux/slices/bridge';
import { useElevatedSurface } from '../../../../../../util/theme/themeUtils';
import { QuickBuyEventProperties, QuickBuyEventValues } from './analytics';
import { useSocialLeaderboardAnalytics } from '../../../analytics';
import { TOP_TRADERS_QUICK_BUY_FEATURES } from './features';
Expand Down Expand Up @@ -95,7 +94,6 @@ const QuickBuyRootInner: React.FC<QuickBuyRootInnerProps> = ({
// with the sheet instead of running its horizontal screen-exit transition.
const [isClosing, setIsClosing] = useState(false);
const isSubmittingTx = useSelector(selectIsSubmittingTx);
const surfaceClass = useElevatedSurface();

const directionSV = useSharedValue<ScreenDirection>(1);
// Suppresses the enter animation on the initial screen when the sheet opens;
Expand Down Expand Up @@ -177,11 +175,7 @@ const QuickBuyRootInner: React.FC<QuickBuyRootInnerProps> = ({
activeScreen === 'amount' || activeScreen === 'priceImpactConfirm';

return (
<BottomSheetDialog
ref={bottomSheetRef}
onClose={onClose}
twClassName={surfaceClass}
>
<BottomSheetDialog ref={bottomSheetRef} onClose={onClose}>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

{isContentReady ? (
<QuickBuyProvider
target={target}
Expand Down
Loading