Skip to content

Commit

Permalink
Merge pull request #29074 from JKobrynski/migratePaymentMethodsToType…
Browse files Browse the repository at this point in the history
…Script

[No QA] [TS Migration] Migrate PaymentMethods.js to TypeScript
  • Loading branch information
srikarparsi authored Oct 18, 2023
2 parents 071b9ec + 9f0956a commit f626744
Show file tree
Hide file tree
Showing 9 changed files with 482 additions and 416 deletions.
8 changes: 1 addition & 7 deletions src/libs/PaymentUtils.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
import {SvgProps} from 'react-native-svg';
import BankAccountModel from './models/BankAccount';
import getBankIcon from '../components/Icon/BankIcons';
import CONST from '../CONST';
import * as Localize from './Localize';
import Fund from '../types/onyx/Fund';
import BankAccount from '../types/onyx/BankAccount';
import PaymentMethod from '../types/onyx/PaymentMethod';

type AccountType = BankAccount['accountType'] | Fund['accountType'];

type PaymentMethod = (BankAccount | Fund) & {
description: string;
icon: React.FC<SvgProps>;
iconSize?: number;
};

/**
* Check to see if user has either a debit card or personal bank account added
*/
Expand Down
356 changes: 0 additions & 356 deletions src/libs/actions/PaymentMethods.js

This file was deleted.

Loading

0 comments on commit f626744

Please sign in to comment.