From 19ec94dc7e85496ecb94c3adedf5f74af204d3ec Mon Sep 17 00:00:00 2001 From: Someshwar Tripathi Date: Mon, 30 Oct 2023 17:55:14 +0530 Subject: [PATCH 1/2] Destructure iconStyles from getBankInfo function --- src/components/AddPlaidBankAccount.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AddPlaidBankAccount.js b/src/components/AddPlaidBankAccount.js index f9667807106b..9d073dda4e1e 100644 --- a/src/components/AddPlaidBankAccount.js +++ b/src/components/AddPlaidBankAccount.js @@ -166,7 +166,7 @@ function AddPlaidBankAccount({ value: account.plaidAccountID, label: `${account.addressName} ${account.mask}`, })); - const {icon, iconSize} = getBankIcon(); + const {icon, iconSize, iconStyles} = getBankIcon(); const plaidErrors = lodashGet(plaidData, 'errors'); const plaidDataErrorMessage = !_.isEmpty(plaidErrors) ? _.chain(plaidErrors).values().first().value() : ''; const bankName = lodashGet(plaidData, 'bankName'); From 5fea751cfc3ee304a0109b97f9c78d9985142710 Mon Sep 17 00:00:00 2001 From: Someshwar Tripathi Date: Mon, 30 Oct 2023 18:16:00 +0530 Subject: [PATCH 2/2] Pass BA icon styles to the Icon component as additional styles --- src/components/AddPlaidBankAccount.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/AddPlaidBankAccount.js b/src/components/AddPlaidBankAccount.js index 9d073dda4e1e..7010ab514617 100644 --- a/src/components/AddPlaidBankAccount.js +++ b/src/components/AddPlaidBankAccount.js @@ -236,6 +236,7 @@ function AddPlaidBankAccount({ src={icon} height={iconSize} width={iconSize} + additionalStyles={iconStyles} /> {bankName}