Skip to content

Commit

Permalink
Merge pull request Expensify#50619 from nkdengineer/fix/49823
Browse files Browse the repository at this point in the history
fix: Input in Rules page have extra space
  • Loading branch information
francoisl authored Oct 13, 2024
2 parents cc0d741 + c77f5c0 commit df19b26
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function RulesAutoApproveReportsUnderPage({route}: RulesAutoApproveReportsUnderP
onBackButtonPress={() => Navigation.goBack()}
/>
<FormProvider
style={[styles.flexGrow1, styles.mh5, styles.mt5]}
style={[styles.flexGrow1, styles.mh5]}
formID={ONYXKEYS.FORMS.RULES_AUTO_APPROVE_REPORTS_UNDER_MODAL_FORM}
onSubmit={({maxExpenseAutoApprovalAmount}) => {
PolicyActions.setPolicyAutomaticApprovalLimit(policyID, maxExpenseAutoApprovalAmount);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/rules/RulesAutoPayReportsUnderPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function RulesAutoPayReportsUnderPage({route}: RulesAutoPayReportsUnderPageProps
onBackButtonPress={() => Navigation.goBack()}
/>
<FormProvider
style={[styles.flexGrow1, styles.mh5, styles.mt5]}
style={[styles.flexGrow1, styles.mh5]}
formID={ONYXKEYS.FORMS.RULES_AUTO_PAY_REPORTS_UNDER_MODAL_FORM}
validate={validateLimit}
onSubmit={({maxExpenseAutoPayAmount}) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/rules/RulesCustomNamePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function RulesCustomNamePage({route}: RulesCustomNamePageProps) {
title={translate('workspace.rules.expenseReportRules.customNameTitle')}
onBackButtonPress={() => Navigation.goBack()}
/>
<View style={[styles.ph5, styles.pt3, styles.pb4]}>
<View style={[styles.ph5, styles.pb4]}>
<Text>
{translate('workspace.rules.expenseReportRules.customNameDescription')}
<TextLink
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/rules/RulesMaxExpenseAgePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function RulesMaxExpenseAgePage({
onBackButtonPress={() => Navigation.goBack()}
/>
<FormProvider
style={[styles.flexGrow1, styles.pt3, styles.ph5]}
style={[styles.flexGrow1, styles.ph5]}
formID={ONYXKEYS.FORMS.RULES_MAX_EXPENSE_AGE_FORM}
onSubmit={({maxExpenseAge}) => {
PolicyActions.setPolicyMaxExpenseAge(policyID, maxExpenseAge);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/rules/RulesMaxExpenseAmountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function RulesMaxExpenseAmountPage({
onBackButtonPress={() => Navigation.goBack()}
/>
<FormProvider
style={[styles.flexGrow1, styles.pt3, styles.ph5]}
style={[styles.flexGrow1, styles.ph5]}
formID={ONYXKEYS.FORMS.RULES_MAX_EXPENSE_AMOUNT_FORM}
onSubmit={({maxExpenseAmount}) => {
PolicyActions.setPolicyMaxExpenseAmount(policyID, maxExpenseAmount);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/rules/RulesRandomReportAuditPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function RulesRandomReportAuditPage({route}: RulesRandomReportAuditPageProps) {
onBackButtonPress={() => Navigation.goBack()}
/>
<FormProvider
style={[styles.flexGrow1, styles.mh5, styles.mt5]}
style={[styles.flexGrow1, styles.mh5]}
formID={ONYXKEYS.FORMS.RULES_RANDOM_REPORT_AUDIT_MODAL_FORM}
onSubmit={({auditRatePercentage}) => {
PolicyActions.setPolicyAutomaticApprovalRate(policyID, auditRatePercentage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function RulesReceiptRequiredAmountPage({
onBackButtonPress={() => Navigation.goBack()}
/>
<FormProvider
style={[styles.flexGrow1, styles.pt3, styles.ph5]}
style={[styles.flexGrow1, styles.ph5]}
formID={ONYXKEYS.FORMS.RULES_REQUIRED_RECEIPT_AMOUNT_FORM}
onSubmit={({maxExpenseAmountNoReceipt}) => {
PolicyActions.setPolicyMaxExpenseAmountNoReceipt(policyID, maxExpenseAmountNoReceipt);
Expand Down

0 comments on commit df19b26

Please sign in to comment.