commit e08d8adf506a8941e8c0c105d10d27d45bbed3f4
parent a0906777d7dc44de58d5572dcbb571d8432a639f
Author: ms <ms@taler.net>
Date: Sun, 19 Dec 2021 14:34:42 +0100
remove misplaced comments
Diffstat:
1 file changed, 1 insertion(+), 20 deletions(-)
diff --git a/packages/bank/src/pages/home/index.tsx b/packages/bank/src/pages/home/index.tsx
@@ -491,17 +491,12 @@ export function BankHome(): VNode {
username={backendState.username}
password={backendState.password}
backendUrl={backendState.url}>
- /**
- * Account layer: GETs only (balance and transactions history).
- */
+
<Account
withdrawalOutcome={pageState.withdrawalOutcome}
talerWithdrawUri={pageState.talerWithdrawUri}
accountLabel={backendState.username}>
- /**
- * Create Taler withdrawal operation via the Access API.
- */
{!pageState.withdrawalInProgress && <button onClick={() => {
createWithdrawalCall(
"EUR:5",
@@ -510,26 +505,12 @@ export function BankHome(): VNode {
)}}>Charge Taler wallet</button>
}
- /**
- * This button turns visible only after a withdrawal reaches
- * a persistent state (success or error), and lets the user
- * navigate back to the main account / profile page.
- */
{pageState.withdrawalOutcome && <button onClick={() => {
pageStateSetter((prevState) => {
const { withdrawalOutcome, ...rest } = prevState;
return {...rest, withdrawalInProgress: false};})}}>Close</button>
}
- /**
- * This button turns visible after a withdrawal operation
- * gets created and let the user confirm the operation after
- * the wallet has scanned/parsed the withdraw URI.
- *
- * Eventually, it will be replaced by a background task that
- * checks whether the wallet has POSTed the exchange's payment
- * details.
- */
{pageState.talerWithdrawUri && <button onClick={() => {
confirmWithdrawalCall(
backendState,