Skip to content

Commit

Permalink
Merge pull request #38542 from Krishna2323/krishna2323/issue/38523
Browse files Browse the repository at this point in the history
fix: Incorrect numpad horizontal padding on the native and mweb devices.
  • Loading branch information
mountiny authored Apr 4, 2024
2 parents 64b5661 + f18cfd8 commit 3644018
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/AmountPicker/AmountSelectorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ function AmountSelectorModal({value, description = '', onValueSelected, isVisibl
includeSafeAreaPaddingBottom={false}
testID={AmountSelectorModal.displayName}
shouldEnableMaxHeight
style={[styles.pb0]}
>
<HeaderWithBackButton
title={description}
onBackButtonPress={onClose}
/>
<ScrollView contentContainerStyle={[styles.flex1, styles.mh5, styles.mb5]}>
<ScrollView contentContainerStyle={[styles.flexGrow1, styles.mb5]}>
<View style={styles.flex1}>
<AmountForm
// eslint-disable-next-line react/jsx-props-no-spreading
Expand All @@ -45,14 +46,15 @@ function AmountSelectorModal({value, description = '', onValueSelected, isVisibl
value={currentValue}
onInputChange={setValue}
/>
<Button
success
large
pressOnEnter
text={translate('common.save')}
onPress={() => onValueSelected?.(currentValue ?? '')}
style={styles.mh5}
/>
</View>
<Button
success
large
pressOnEnter
text={translate('common.save')}
onPress={() => onValueSelected?.(currentValue ?? '')}
/>
</ScrollView>
</ScreenWrapper>
</Modal>
Expand Down

0 comments on commit 3644018

Please sign in to comment.