taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 049570567ceb4e625f197d719b328b93f4a487d2
parent 3d2eacf8c68a476ed44f68c8ff45c5ae328e1de9
Author: Sebastian <sebasjm@gmail.com>
Date:   Mon, 10 Feb 2025 14:13:41 -0300

kyc status

Diffstat:
Mpackages/merchant-backoffice-ui/src/paths/instance/kyc/list/ListPage.tsx | 31++++++++++++++++++-------------
1 file changed, 18 insertions(+), 13 deletions(-)

diff --git a/packages/merchant-backoffice-ui/src/paths/instance/kyc/list/ListPage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/kyc/list/ListPage.tsx @@ -110,11 +110,16 @@ function PendingTable({ <td>{e.exchange_url}</td> <td>{e.payto_uri}</td> <td> - <a href={spa} target="_black" rel="noreferrer"> - <i18n.Translate> - Pending KYC process, click here to complete - </i18n.Translate> - </a> + {e.exchange_http_status === 200 || + e.exchange_http_status === 204 ? ( + <i18n.Translate>Ready</i18n.Translate> + ) : ( + <a href={spa} target="_black" rel="noreferrer"> + <i18n.Translate> + Pending KYC process, click here to complete + </i18n.Translate> + </a> + )} </td> </tr> ); @@ -122,20 +127,20 @@ function PendingTable({ const accounts = e.payto_kycauths; return ( <tr key={i}> - <td>{e.exchange_url}</td> + <td onClick={() => onShowInstructions(accounts, e.payto_uri)}> + {e.exchange_url} + </td> <td onClick={() => onShowInstructions(accounts, e.payto_uri)} style={{ cursor: "pointer" }} > {e.payto_uri} </td> - <td> - <a href={e.access_token} target="_black" rel="noreferrer"> - <i18n.Translate> - The Payment Service Provider requires an account - verification. - </i18n.Translate> - </a> + <td onClick={() => onShowInstructions(accounts, e.payto_uri)}> + <i18n.Translate> + The Payment Service Provider requires an account + verification. + </i18n.Translate> </td> </tr> );