Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Jun 4, 2024
1 parent 5de4376 commit 3555f5e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function PolicyDistanceRateDetailsPage({policy, route}: PolicyDistanceRateDetail
threeDotsAnchorPosition={styles.threeDotsPopoverOffset(windowWidth)}
/>
<ScrollView contentContainerStyle={styles.flexGrow1}>
<View style={styles.flexGrow1}>
<View>
<OfflineWithFeedback
errors={ErrorUtils.getLatestErrorField(rate ?? {}, 'enabled')}
pendingAction={rate?.pendingFields?.enabled}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type {StackScreenProps} from '@react-navigation/stack';
import React, {useMemo} from 'react';
import {Keyboard} from 'react-native';
import HeaderWithBackButton from '@components/HeaderWithBackButton';
import ScreenWrapper from '@components/ScreenWrapper';
import SelectionList from '@components/SelectionList';
Expand Down Expand Up @@ -56,7 +55,6 @@ function PolicyDistanceRateTaxRateEditPage({route, policy}: PolicyDistanceRateTa
},
},
]);
Keyboard.dismiss();
Navigation.navigate(ROUTES.WORKSPACE_DISTANCE_RATE_DETAILS.getRoute(policyID, rateID));
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type {StackScreenProps} from '@react-navigation/stack';
import React, {useCallback} from 'react';
import {Keyboard} from 'react-native';
import AmountForm from '@components/AmountForm';
import FormProvider from '@components/Form/FormProvider';
import InputWrapperWithRef from '@components/Form/InputWrapper';
Expand Down Expand Up @@ -46,7 +45,6 @@ function PolicyDistanceRateTaxReclaimableOnEditPage({route, policy}: PolicyDista
},
},
]);
Keyboard.dismiss();
Navigation.goBack();
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function PolicyDistanceRatesSettingsPage({policy, policyCategories, route}: Poli
>
<HeaderWithBackButton title={translate('workspace.common.settings')} />
<ScrollView contentContainerStyle={styles.flexGrow1}>
<View style={styles.flexGrow1}>
<View>
<OfflineWithFeedback
errors={ErrorUtils.getLatestErrorField(customUnits[customUnitID] ?? {}, 'attributes')}
pendingAction={customUnits[customUnitID]?.pendingFields?.attributes}
Expand Down

0 comments on commit 3555f5e

Please sign in to comment.