From 15af6c619de70336bcdfbabbd32b9d93aabefc5b Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 22 Sep 2023 18:34:49 -0300 Subject: towards new core bank api --- packages/demobank-ui/src/components/Routing.tsx | 40 +++++++++++-------------- 1 file changed, 17 insertions(+), 23 deletions(-) (limited to 'packages/demobank-ui/src/components/Routing.tsx') diff --git a/packages/demobank-ui/src/components/Routing.tsx b/packages/demobank-ui/src/components/Routing.tsx index 90d2d4c48..d51bd01eb 100644 --- a/packages/demobank-ui/src/components/Routing.tsx +++ b/packages/demobank-ui/src/components/Routing.tsx @@ -27,6 +27,7 @@ import { Test } from "../pages/Test.js"; import { useBackendContext } from "../context/backend.js"; import { LoginForm } from "../pages/LoginForm.js"; import { AdminHome } from "../pages/admin/Home.js"; +import { bankUiSettings } from "../settings.js"; export function Routing(): VNode { const history = createHashHistory(); @@ -45,6 +46,10 @@ export function Routing(): VNode { /> )} /> + } + /> ( @@ -53,22 +58,21 @@ export function Routing(): VNode { onContinue={() => { route("/account"); }} - // onLoadNotOk={() => { - // route("/account"); - // }} - /> - )} - /> - ( - { - route("/account"); - }} /> )} /> + {bankUiSettings.allowRegistrations && + ( + { + route("/account"); + }} + /> + )} + /> + } @@ -93,16 +97,6 @@ export function Routing(): VNode { path="/public-accounts" component={() => } /> - ( - { - route("/account"); - }} - /> - )} - /> { -- cgit v1.2.3