Skip to content

Commit ee7acd9

Browse files
fix(ramps): remove ScreenLayout wrapper from error state in native Checkout
The ScreenLayout component has a hardcoded backgroundColor that was overriding the BottomSheet background, causing a white/grey flash in the error state of the Transak checkout flow.
1 parent ae524d9 commit ee7acd9

1 file changed

Lines changed: 16 additions & 20 deletions

File tree

app/components/UI/Ramp/Views/Checkout/Checkout.tsx

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -671,26 +671,22 @@ const Checkout = () => {
671671
keyboardAvoidingViewEnabled={false}
672672
>
673673
{sharedHeader}
674-
<ScreenLayout>
675-
<ScreenLayout.Body>
676-
<ErrorView
677-
description={error}
678-
ctaOnPress={() => {
679-
setKey((prevKey) => prevKey + 1);
680-
setError('');
681-
isRedirectionHandledRef.current = false;
682-
lastLoadCompleteUrlRef.current = null;
683-
loadUrlErrorsRef.current.clear();
684-
loadStartTimeRef.current = null;
685-
closeSourceRef.current = null;
686-
urlHistoryRef.current = { current: null, previous: null };
687-
stepIndexRef.current = 0;
688-
previousNavStateUrlRef.current = null;
689-
}}
690-
location="Provider Webview"
691-
/>
692-
</ScreenLayout.Body>
693-
</ScreenLayout>
674+
<ErrorView
675+
description={error}
676+
ctaOnPress={() => {
677+
setKey((prevKey) => prevKey + 1);
678+
setError('');
679+
isRedirectionHandledRef.current = false;
680+
lastLoadCompleteUrlRef.current = null;
681+
loadUrlErrorsRef.current.clear();
682+
loadStartTimeRef.current = null;
683+
closeSourceRef.current = null;
684+
urlHistoryRef.current = { current: null, previous: null };
685+
stepIndexRef.current = 0;
686+
previousNavStateUrlRef.current = null;
687+
}}
688+
location="Provider Webview"
689+
/>
694690
</BottomSheet>
695691
);
696692
}

0 commit comments

Comments
 (0)