Skip to content

Commit

Permalink
Merge pull request #51171 from etCoderDysto/tax_rate_header_button_gap
Browse files Browse the repository at this point in the history
fix: Inconsistent spacing between Add rate and Settings buttons in Distance rates and Taxes page
  • Loading branch information
grgia authored Oct 23, 2024
2 parents 45c44ee + e5bf11a commit e2f8b96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/workspace/taxes/WorkspaceTaxesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ function WorkspaceTaxesPage({

const shouldShowBulkActionsButton = shouldUseNarrowLayout ? selectionMode?.isEnabled : selectedTaxesIDs.length > 0;
const headerButtons = !shouldShowBulkActionsButton ? (
<View style={[styles.w100, styles.flexRow, shouldUseNarrowLayout && styles.mb3]}>
<View style={[styles.w100, styles.flexRow, styles.gap2, shouldUseNarrowLayout && styles.mb3]}>
{!hasAccountingConnections && (
<Button
success
onPress={() => Navigation.navigate(ROUTES.WORKSPACE_TAX_CREATE.getRoute(policyID))}
icon={Expensicons.Plus}
text={translate('workspace.taxes.addRate')}
style={[styles.mr3, shouldUseNarrowLayout && styles.flex1]}
style={[shouldUseNarrowLayout && styles.flex1]}
/>
)}
<Button
Expand Down

0 comments on commit e2f8b96

Please sign in to comment.