Skip to content

Commit 3c01851

Browse files
Merge pull request #14552 from LedgerHQ/fix-earn-deposit-flow-background-image
fix: remove background-image on earn deposit flow and add default background colors for earn
2 parents a4bfde9 + 4fdda8b commit 3c01851

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.changeset/slow-knives-think.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"live-mobile": patch
3+
---
4+
5+
remove background-image on earn deposit flow

apps/ledger-live-mobile/src/screens/PTX/Earn/EarnBackground.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ function EarnBackgroundComponent() {
1212
left: theme.sizes.s0,
1313
right: theme.sizes.s0,
1414
bottom: theme.sizes.s0,
15+
backgroundColor: theme.colors.bg.base,
1516
},
1617
imageContainer: {
17-
width: theme.sizes.full,
18-
height: theme.sizes.full,
18+
aspectRatio: 25 / 32,
1919
},
2020
}),
2121
[],

apps/ledger-live-mobile/src/screens/PTX/Earn/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function Earn({ route }: Props) {
150150
}
151151
return (
152152
<View style={{ flex: 1, overflow: "visible" }}>
153-
{isPtxUiV2 && <EarnBackground />}
153+
{isPtxUiV2 && !hideMainNavigator && <EarnBackground />}
154154
<View style={{ flex: 1, zIndex: 1 }} pointerEvents="box-none">
155155
{displayManifest ? (
156156
<Fragment>

0 commit comments

Comments
 (0)