Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Input in Rules page have extra space #50619

Merged
merged 1 commit into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Loading