Skip to content

Commit

Permalink
Merge pull request #6196 from Santhosh-Sellavel/Improve_Payment_Optio…
Browse files Browse the repository at this point in the history
…ns_Floating_Button

Improvement Payment options Padding
  • Loading branch information
deetergp authored Nov 4, 2021
2 parents dc67437 + d4361a2 commit fa83e4c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/pages/settings/Payments/PaymentsPage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {ScrollView} from 'react-native';
import {ScrollView, View} from 'react-native';
import {withOnyx} from 'react-native-onyx';
import PropTypes from 'prop-types';
import PaymentMethodList from './PaymentMethodList';
Expand Down Expand Up @@ -143,18 +143,20 @@ class PaymentsPage extends React.Component {
left: this.state.anchorPositionLeft,
}}
>
{!this.props.payPalMeUsername && (
<View style={styles.pr15}>
{!this.props.payPalMeUsername && (
<MenuItem
title={this.props.translate('common.payPalMe')}
icon={PayPal}
onPress={() => this.addPaymentMethodTypePressed(PAYPAL)}
/>
)}
<MenuItem
title={this.props.translate('common.payPalMe')}
icon={PayPal}
onPress={() => this.addPaymentMethodTypePressed(PAYPAL)}
title={this.props.translate('common.debitCard')}
icon={CreditCard}
onPress={() => this.addPaymentMethodTypePressed(DEBIT_CARD)}
/>
)}
<MenuItem
title={this.props.translate('common.debitCard')}
icon={CreditCard}
onPress={() => this.addPaymentMethodTypePressed(DEBIT_CARD)}
/>
</View>
</Popover>
</KeyboardAvoidingView>
</ScreenWrapper>
Expand Down
4 changes: 4 additions & 0 deletions src/styles/utilities/spacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ export default {
paddingRight: 32,
},

pr15: {
paddingRight: 60,
},

pl5: {
paddingLeft: 20,
},
Expand Down

0 comments on commit fa83e4c

Please sign in to comment.