diff options
author | Sebastian <sebasjm@gmail.com> | 2023-09-22 15:29:19 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-09-25 14:50:43 -0300 |
commit | a59df74fb2b4374fd58f68fd4abaffe623cd54d6 (patch) | |
tree | 01d930cbdf2f50f1d3b228af37ebaa9c2c183489 /packages/demobank-ui/src/components | |
parent | dfd23f63ba40a2afb0cb41bf742b0ae647a2b38c (diff) | |
download | wallet-core-a59df74fb2b4374fd58f68fd4abaffe623cd54d6.tar.xz |
more ui
Diffstat (limited to 'packages/demobank-ui/src/components')
-rw-r--r-- | packages/demobank-ui/src/components/Routing.tsx | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/packages/demobank-ui/src/components/Routing.tsx b/packages/demobank-ui/src/components/Routing.tsx index e1fd93737..90d2d4c48 100644 --- a/packages/demobank-ui/src/components/Routing.tsx +++ b/packages/demobank-ui/src/components/Routing.tsx @@ -46,6 +46,20 @@ export function Routing(): VNode { )} /> <Route + path="/operation/:wopid" + component={({ wopid }: { wopid: string }) => ( + <WithdrawalOperationPage + operationId={wopid} + onContinue={() => { + route("/account"); + }} + // onLoadNotOk={() => { + // route("/account"); + // }} + /> + )} + /> + <Route path="/register" component={() => ( <RegistrationPage @@ -65,10 +79,6 @@ export function Routing(): VNode { <BankFrame account={backend.state.username}> <Router history={history}> <Route - path="/test" - component={Test} - /> - <Route path="/operation/:wopid" component={({ wopid }: { wopid: string }) => ( <WithdrawalOperationPage @@ -76,9 +86,6 @@ export function Routing(): VNode { onContinue={() => { route("/account"); }} - // onLoadNotOk={() => { - // route("/account"); - // }} /> )} /> @@ -108,9 +115,9 @@ export function Routing(): VNode { } else { return <HomePage account={username} - // onPendingOperationFound={(wopid) => { - // route(`/operation/${wopid}`); - // }} + goToConfirmOperation={(wopid) => { + route(`/operation/${wopid}`); + }} goToBusinessAccount={() => { route("/business"); }} |