Skip to content

Commit

Permalink
line up CTA button with menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
thesahindia committed Aug 25, 2022
1 parent e9c4bfb commit c4217b7
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/pages/ReimbursementAccount/BankAccountStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class BankAccountStep extends React.Component {
onPress={() => BankAccounts.setBankAccountSubStep(CONST.BANK_ACCOUNT.SETUP_TYPE.PLAID)}
disabled={this.props.isPlaidDisabled || !validated}
style={[styles.mt5, styles.buttonCTA]}
iconStyles={[styles.mr5]}
iconStyles={[styles.buttonCTAIcon]}
shouldShowRightIcon
success
large
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ReimbursementAccount/ValidationStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class ValidationStep extends React.Component {
onPress={Report.navigateToConciergeChat}
icon={Expensicons.ChatBubble}
style={[styles.mt4, styles.buttonCTA]}
iconStyles={[styles.mr5]}
iconStyles={[styles.buttonCTAIcon]}
shouldShowRightIcon
large
success
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/Payments/PaymentMethodList.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class PaymentMethodList extends Component {
text: this.props.translate('paymentMethodList.addPaymentMethod'),
icon: Expensicons.CreditCard,
style: [styles.buttonCTA],
iconStyles: [styles.mr4],
iconStyles: [styles.buttonCTAIcon],
onPress: e => this.props.onPress(e),
isDisabled: this.props.isLoadingPayments,
shouldShowRightIcon: true,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceBankAccountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class WorkspaceBankAccountPage extends React.Component {
onPress={this.navigateToBankAccountRoute}
icon={Expensicons.Bank}
style={[styles.mt2, styles.buttonCTA]}
iconStyles={[styles.mr5]}
iconStyles={[styles.buttonCTAIcon]}
shouldShowRightIcon
large
success
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/bills/WorkspaceBillsNoVBAView.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const WorkspaceBillsNoVBAView = props => (
onPress={() => Navigation.navigate(ROUTES.getWorkspaceBankAccountRoute(props.policyID))}
icon={Expensicons.Bank}
style={[styles.mt4]}
iconStyles={[styles.mr5]}
iconStyles={[styles.buttonCTAIcon]}
shouldShowRightIcon
large
success
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/invoices/WorkspaceInvoicesNoVBAView.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const WorkspaceInvoicesNoVBAView = props => (
onPress={() => Navigation.navigate(ROUTES.getWorkspaceBankAccountRoute(props.policyID))}
icon={Expensicons.Bank}
style={[styles.mt4]}
iconStyles={[styles.mr5]}
iconStyles={[styles.buttonCTAIcon]}
shouldShowRightIcon
large
success
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/reimburse/WorkspaceReimburseView.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class WorkspaceReimburseView extends React.Component {
onPress={() => Navigation.navigate(ROUTES.getWorkspaceBankAccountRoute(this.props.policyID))}
icon={Expensicons.Bank}
style={[styles.mt4]}
iconStyles={[styles.mr5]}
iconStyles={[styles.buttonCTAIcon]}
shouldShowRightIcon
large
success
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/travel/WorkspaceTravelNoVBAView.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const WorkspaceTravelNoVBAView = props => (
onPress={() => Navigation.navigate(ROUTES.getWorkspaceBankAccountRoute(props.policyID))}
icon={Expensicons.Bank}
style={[styles.mt4]}
iconStyles={[styles.mr5]}
iconStyles={[styles.buttonCTAIcon]}
shouldShowRightIcon
large
success
Expand Down
8 changes: 6 additions & 2 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ const styles = {
borderRadius: variables.componentBorderRadius,
height: variables.componentSizeLarge,
paddingTop: 8,
paddingRight: 12,
paddingRight: 14,
paddingBottom: 8,
paddingLeft: 12,
paddingLeft: 14,
backgroundColor: themeColors.buttonDefaultBG,
},

Expand Down Expand Up @@ -461,6 +461,10 @@ const styles = {
...spacing.mh4,
},

buttonCTAIcon: {
marginRight: 22,
},

buttonConfirm: {
margin: 20,
},
Expand Down

0 comments on commit c4217b7

Please sign in to comment.