diff options
author | Sebastian <sebasjm@gmail.com> | 2023-09-21 13:10:16 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-09-25 14:50:41 -0300 |
commit | 0b7bbed99d155ba030a1328e357ab6751bdbb835 (patch) | |
tree | 7ef5e136aec9c1253f55295a1b20b66043a924f6 /packages/demobank-ui/src/components | |
parent | 062939d9cc016a186a282f7a48492c3e01cd740c (diff) | |
download | wallet-core-0b7bbed99d155ba030a1328e357ab6751bdbb835.tar.xz |
more ui: business and admin
Diffstat (limited to 'packages/demobank-ui/src/components')
-rw-r--r-- | packages/demobank-ui/src/components/Routing.tsx | 17 | ||||
-rw-r--r-- | packages/demobank-ui/src/components/ShowInputErrorLabel.tsx | 4 |
2 files changed, 7 insertions, 14 deletions
diff --git a/packages/demobank-ui/src/components/Routing.tsx b/packages/demobank-ui/src/components/Routing.tsx index ef11af76e..b8e39948b 100644 --- a/packages/demobank-ui/src/components/Routing.tsx +++ b/packages/demobank-ui/src/components/Routing.tsx @@ -33,12 +33,7 @@ export function Routing(): VNode { const backend = useBackendContext(); if (backend.state.status === "loggedOut") { - return <BankFrame - account={undefined} - goToBusinessAccount={() => { - route("/business"); - }} - > + return <BankFrame > <Router history={history}> <Route path="/login" @@ -67,12 +62,7 @@ export function Routing(): VNode { const { isUserAdministrator, username } = backend.state return ( - <BankFrame - account={backend.state.username} - goToBusinessAccount={() => { - route("/business"); - }} - > + <BankFrame account={backend.state.username}> <Router history={history}> <Route path="/test" @@ -121,6 +111,9 @@ export function Routing(): VNode { onPendingOperationFound={(wopid) => { route(`/operation/${wopid}`); }} + goToBusinessAccount={() => { + route("/business"); + }} onRegister={() => { route("/register"); }} diff --git a/packages/demobank-ui/src/components/ShowInputErrorLabel.tsx b/packages/demobank-ui/src/components/ShowInputErrorLabel.tsx index dacffe20a..c5840cad9 100644 --- a/packages/demobank-ui/src/components/ShowInputErrorLabel.tsx +++ b/packages/demobank-ui/src/components/ShowInputErrorLabel.tsx @@ -24,6 +24,6 @@ export function ShowInputErrorLabel({ isDirty: boolean; }): VNode { if (message && isDirty) - return <div style={{ marginTop: 8, color: "red" }}>{message}</div>; - return <Fragment />; + return <div class="text-base" style={{ color: "red" }}>{message}</div>; + return <div class="text-base" style={{ }}> </div>; } |