Skip to content

Commit 7477a1f

Browse files
committed
rename
1 parent bb992f8 commit 7477a1f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/components/Search/SearchPageHeader/SearchFiltersBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function SearchFiltersBar({
146146
}: SearchFiltersBarProps) {
147147
const scrollRef = useRef<FlatList<FilterItem>>(null);
148148
const currentPolicy = usePolicy(currentSelectedPolicyID);
149-
const [userBillingGraceEndPeriodCollection] = useOnyx(ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_USER_BILLING_GRACE_PERIOD_END);
149+
const [userBillingGraceEndPeriods] = useOnyx(ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_USER_BILLING_GRACE_PERIOD_END);
150150
const [isUserValidated] = useOnyx(ONYXKEYS.ACCOUNT, {selector: isUserValidatedSelector});
151151
const [searchAdvancedFiltersForm = getEmptyObject<Partial<SearchAdvancedFiltersForm>>()] = useOnyx(ONYXKEYS.FORMS.SEARCH_ADVANCED_FILTERS_FORM);
152152
// type, groupBy, status, and view values are not guaranteed to respect the ts type as they come from user input
@@ -808,7 +808,7 @@ function SearchFiltersBar({
808808
activeAdminPolicies,
809809
isUserValidated,
810810
isDelegateAccessRestricted,
811-
userBillingGraceEndPeriodCollection,
811+
userBillingGraceEndPeriods,
812812
showDelegateNoAccessModal,
813813
confirmPayment,
814814
})

src/libs/actions/Search.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ function handleBulkPayItemSelected(params: {
12921292
activeAdminPolicies: Policy[];
12931293
isUserValidated: boolean | undefined;
12941294
isDelegateAccessRestricted: boolean;
1295-
userBillingGraceEndPeriodCollection: OnyxCollection<BillingGraceEndPeriod>;
1295+
userBillingGraceEndPeriods: OnyxCollection<BillingGraceEndPeriod>;
12961296
showDelegateNoAccessModal: () => void;
12971297
confirmPayment?: (paymentType: PaymentMethodType | undefined, additionalData?: Record<string, unknown>) => void;
12981298
}) {
@@ -1306,7 +1306,7 @@ function handleBulkPayItemSelected(params: {
13061306
activeAdminPolicies,
13071307
isUserValidated,
13081308
isDelegateAccessRestricted,
1309-
userBillingGraceEndPeriodCollection,
1309+
userBillingGraceEndPeriods,
13101310
showDelegateNoAccessModal,
13111311
confirmPayment,
13121312
} = params;
@@ -1326,7 +1326,7 @@ function handleBulkPayItemSelected(params: {
13261326
return;
13271327
}
13281328

1329-
if (policy && shouldRestrictUserBillableActions(policy?.id, userBillingGraceEndPeriodCollection)) {
1329+
if (policy && shouldRestrictUserBillableActions(policy?.id, userBillingGraceEndPeriods)) {
13301330
Navigation.navigate(ROUTES.RESTRICTED_ACTION.getRoute(policy?.id));
13311331
return;
13321332
}

src/pages/Search/SearchSelectedNarrow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type SearchSelectedNarrowProps = {
3434

3535
function SearchSelectedNarrow({options, itemsLength, currentSelectedPolicyID, currentSelectedReportID, confirmPayment, latestBankItems}: SearchSelectedNarrowProps) {
3636
const styles = useThemeStyles();
37-
const [userBillingGraceEndPeriodCollection] = useOnyx(ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_USER_BILLING_GRACE_PERIOD_END);
37+
const [userBillingGraceEndPeriods] = useOnyx(ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_USER_BILLING_GRACE_PERIOD_END);
3838
const [allPolicies] = useOnyx(ONYXKEYS.COLLECTION.POLICY);
3939
const [selectedIouReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${currentSelectedReportID}`);
4040
const {translate, localeCompare} = useLocalize();
@@ -96,7 +96,7 @@ function SearchSelectedNarrow({options, itemsLength, currentSelectedPolicyID, cu
9696
activeAdminPolicies,
9797
isUserValidated,
9898
isDelegateAccessRestricted,
99-
userBillingGraceEndPeriodCollection,
99+
userBillingGraceEndPeriods,
100100
showDelegateNoAccessModal,
101101
confirmPayment,
102102
})

0 commit comments

Comments
 (0)