diff options
author | Sebastian <sebasjm@gmail.com> | 2022-12-06 11:28:56 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-12-06 11:28:56 -0300 |
commit | 51bbf08d241f0eff8847f6656accee03c0626d88 (patch) | |
tree | 61cc838fff22c5ceb39ef47105923a755ccdd32e /packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx | |
parent | de9f10cbf0c694d004149a7d8f4b9a458b5b0a71 (diff) | |
download | wallet-core-51bbf08d241f0eff8847f6656accee03c0626d88.tar.xz |
implement web-utils in web-extension
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx b/packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx index ba8d65ffa..a9a4b2e41 100644 --- a/packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx +++ b/packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx @@ -377,6 +377,7 @@ export function ReadySendView({ </Container> ); } +import bankIcon from "../../svg/ri-bank-line.svg"; function RowExample({ info, @@ -385,15 +386,22 @@ function RowExample({ info: Contact; disabled?: boolean; }): VNode { + const icon = info.icon_type === "bank" ? bankIcon : undefined; return ( <MediaExample data-disabled={disabled}> <MediaLeft> <CircleDiv> - <SvgIcon - title={info.name} - dangerouslySetInnerHTML={{ __html: info.icon }} - color="currentColor" - /> + {icon !== undefined ? ( + <SvgIcon + title={info.name} + dangerouslySetInnerHTML={{ + __html: icon, + }} + color="currentColor" + /> + ) : ( + <span>A</span> + )} </CircleDiv> </MediaLeft> <MediaBody> |