summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-09-25 15:41:08 +0200
committerChristian Grothoff <christian@grothoff.org>2022-09-25 15:41:13 +0200
commit2f746b437e74837e63ee10ca6dabbf5ff69b31ec (patch)
tree27ee89bf8ba134e814f76d2103c608b6bc4ac468 /packages
parent132fdfb5687bf390005ac2c0158837338ba83a98 (diff)
downloadmerchant-backoffice-2f746b437e74837e63ee10ca6dabbf5ff69b31ec.tar.gz
merchant-backoffice-2f746b437e74837e63ee10ca6dabbf5ff69b31ec.tar.bz2
merchant-backoffice-2f746b437e74837e63ee10ca6dabbf5ff69b31ec.zip
-fix my FTBFS
Diffstat (limited to 'packages')
-rw-r--r--packages/bank/src/pages/home/index.tsx22
1 files changed, 16 insertions, 6 deletions
diff --git a/packages/bank/src/pages/home/index.tsx b/packages/bank/src/pages/home/index.tsx
index 36aea01..b55000b 100644
--- 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} />