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

[No QA] add propTypes for Plaid accounts #3817

Merged
merged 1 commit into from
Jul 7, 2021
Merged
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
29 changes: 28 additions & 1 deletion src/components/AddPlaidBankAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,35 @@ const propTypes = {
/** Whether we are fetching the bank accounts from the API */
loading: PropTypes.bool,

/** Error object */
error: PropTypes.shape({
/** Error message */
message: PropTypes.string,

/** Error title */
title: PropTypes.string,
}),

/** List of accounts */
accounts: PropTypes.arrayOf(PropTypes.object),
accounts: PropTypes.arrayOf(PropTypes.shape({
/** Masked account number */
accountNumber: PropTypes.string,

/** Name of account */
addressName: PropTypes.string,

/** Has this account has already been added? */
alreadyExists: PropTypes.bool,

/** Is the account a savings account? */
isSavings: PropTypes.bool,

/** Unique identifier for this account in Plaid */
plaidAccountID: PropTypes.string,

/** Routing number for the account */
routingNumber: PropTypes.string,
})),
}),

/** Fired when the user exits the Plaid flow */
Expand Down