Skip to content

Commit 0844935

Browse files
committed
Fix text styling in RampBankRoutingDetailsScene
Should proably fix in `Paragraph` instead, but keeping this change minimal in scope
1 parent df8426d commit 0844935

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

src/components/scenes/RampBankRoutingDetailsScene.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { SceneContainer } from '../layout/SceneContainer'
1616
import { EdgeRow } from '../rows/EdgeRow'
1717
import { showToast } from '../services/AirshipInstance'
1818
import { cacheStyles, type Theme, useTheme } from '../services/ThemeContext'
19-
import { EdgeText, Paragraph } from '../themed/EdgeText'
19+
import { EdgeText } from '../themed/EdgeText'
2020

2121
export interface BankAddress {
2222
addressLine1: string
@@ -68,9 +68,9 @@ export const RampBankRoutingDetailsScene: React.FC<Props> = props => {
6868
size={theme.rem(2.5)}
6969
color={theme.primaryText}
7070
/>
71-
<Paragraph style={styles.instructionText}>
72-
{lstrings.ramp_bank_routing_instructions}
73-
</Paragraph>
71+
<EdgeText numberOfLines={0} style={styles.instructionText}>
72+
{lstrings.ramp_bank_routing_instructions_1}
73+
</EdgeText>
7474
</View>
7575

7676
<EdgeCard>
@@ -158,8 +158,12 @@ export const RampBankRoutingDetailsScene: React.FC<Props> = props => {
158158
)}
159159

160160
<View style={styles.warningTextContainer}>
161-
<EdgeText style={styles.warningText}>
162-
{lstrings.ramp_bank_routing_warning}
161+
<EdgeText
162+
style={styles.warningText}
163+
disableFontScaling
164+
numberOfLines={0}
165+
>
166+
{lstrings.ramp_bank_routing_instructions_2}
163167
</EdgeText>
164168
</View>
165169

@@ -185,7 +189,8 @@ const getStyles = cacheStyles((theme: Theme) => ({
185189
color: theme.iconTappable
186190
},
187191
instructionText: {
188-
flexShrink: 1
192+
flexShrink: 1,
193+
marginLeft: theme.rem(0.5)
189194
},
190195
cardContent: {
191196
padding: theme.rem(0.5)

0 commit comments

Comments
 (0)