commit 2f746b437e74837e63ee10ca6dabbf5ff69b31ec
parent 132fdfb5687bf390005ac2c0158837338ba83a98
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 25 Sep 2022 15:41:08 +0200
-fix my FTBFS
Diffstat:
1 file changed, 16 insertions(+), 6 deletions(-)
diff --git a/packages/bank/src/pages/home/index.tsx b/packages/bank/src/pages/home/index.tsx
@@ -76,6 +76,14 @@ interface CredentialsRequestType {
password: string;
}
+/**
+ * Request body of /register.
+ */
+interface LoginRequestType {
+ username: string;
+ password: string;
+}
+
interface WireTransferRequestType {
iban: string;
subject: string;
@@ -1335,7 +1343,7 @@ function RegistrationForm(Props: any): VNode {
...submitData,
username: e.currentTarget.value,
}))}} />
- <br>
+ <br />
{i18n`Password:`}
<input
type="password"
@@ -1348,9 +1356,10 @@ function RegistrationForm(Props: any): VNode {
...submitData,
password: e.currentTarget.value,
}))}} />
- <br>
+ <br />
+ {/*
{i18n`Phone number:`}
- <!-- FIXME: add input validation (must start with +, otherwise only numbers) -->
+ // FIXME: add input validation (must start with +, otherwise only numbers)
<input
type="phone"
placeholder="+CC-123456789"
@@ -1362,7 +1371,8 @@ function RegistrationForm(Props: any): VNode {
...submitData,
phone: e.currentTarget.value,
}))}} />
- <br>
+ <br />
+ */}
<button
autofocus
class="pure-button pure-button-primary"
@@ -1398,7 +1408,7 @@ function RegistrationForm(Props: any): VNode {
* after setting to undefined.
*/
submitDataSetter({username: "", password: ""})}}>{i18n`Register`}</button>
- <!-- FIXME: should use a different color -->
+ // FIXME: should use a different color
<button
autofocus
class="pure-button pure-button-primary"
@@ -1867,7 +1877,7 @@ export function BankHome(): VNode {
return (
<PageContext.Provider value={[pageState, pageStateSetter]}>
<BankFrame>
- <h1 class="nav">{i18n`Welcome to the euFin bank!`}</h1>
+ <h1 class="nav">{i18n`Welcome to the bank!`}</h1>
<LoginForm
pageStateSetter={pageStateSetter}
backendStateSetter={backendStateSetter} />