From 25646b9324da92386ec79256a15bdd1cf44458e3 Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Fri, 26 Jul 2024 10:58:38 -1000 Subject: [PATCH] Fix style --- src/components/AddPaymentMethodMenu.tsx | 4 ++-- src/pages/settings/Wallet/AddDebitCardPage.tsx | 2 +- src/pages/settings/Wallet/PaymentMethodList.tsx | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/AddPaymentMethodMenu.tsx b/src/components/AddPaymentMethodMenu.tsx index eda9238f0b07..451979b92efa 100644 --- a/src/components/AddPaymentMethodMenu.tsx +++ b/src/components/AddPaymentMethodMenu.tsx @@ -1,5 +1,5 @@ import type {RefObject} from 'react'; -import React, { useEffect } from 'react'; +import React, {useEffect} from 'react'; import type {View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; import {withOnyx} from 'react-native-onyx'; @@ -79,7 +79,7 @@ function AddPaymentMethodMenu({ } onItemSelected(CONST.PAYMENT_METHODS.PERSONAL_BANK_ACCOUNT); - }, [isPersonalOnlyOption, isVisible]); + }, [isPersonalOnlyOption, isVisible, onItemSelected]); if (isPersonalOnlyOption) { return null; diff --git a/src/pages/settings/Wallet/AddDebitCardPage.tsx b/src/pages/settings/Wallet/AddDebitCardPage.tsx index 0799c36c10f8..d785df0ea324 100644 --- a/src/pages/settings/Wallet/AddDebitCardPage.tsx +++ b/src/pages/settings/Wallet/AddDebitCardPage.tsx @@ -7,9 +7,9 @@ import ScreenWrapper from '@components/ScreenWrapper'; import useLocalize from '@hooks/useLocalize'; import usePrevious from '@hooks/usePrevious'; import Navigation from '@libs/Navigation/Navigation'; +import NotFoundPage from '@pages/ErrorPage/NotFoundPage'; import * as PaymentMethods from '@userActions/PaymentMethods'; import ONYXKEYS from '@src/ONYXKEYS'; -import NotFoundPage from '@pages/ErrorPage/NotFoundPage'; function DebitCardPage() { // Temporarily disabled diff --git a/src/pages/settings/Wallet/PaymentMethodList.tsx b/src/pages/settings/Wallet/PaymentMethodList.tsx index d4d30c08d7ec..a3fe35921137 100644 --- a/src/pages/settings/Wallet/PaymentMethodList.tsx +++ b/src/pages/settings/Wallet/PaymentMethodList.tsx @@ -260,10 +260,9 @@ function PaymentMethodList({ return assignedCardsGrouped; } - const paymentCardList = fundList ?? {}; - // Hide any billing cards that are not P2P debit cards for now because you cannot make them your default method, or delete them // All payment cards are temporarily disabled for use as a payment method + // const paymentCardList = fundList ?? {}; // const filteredCardList = Object.values(paymentCardList).filter((card) => !!card.accountData?.additionalData?.isP2PDebitCard); const filteredCardList = {}; let combinedPaymentMethods = PaymentUtils.formatPaymentMethods(bankAccountList ?? {}, filteredCardList, styles);