diff options
author | Sebastian <sebasjm@gmail.com> | 2024-02-23 08:30:43 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-02-23 08:30:43 -0300 |
commit | 73e36c99037cef1ccc43bb80b67b19e0f44326fd (patch) | |
tree | c076b0084a3fb5004b8f3ffa32cc09a9b1a42d22 /packages/demobank-ui/src/context/navigation.ts | |
parent | 271488f041890391e1c6d946fd1aef00c2113fd0 (diff) | |
download | wallet-core-73e36c99037cef1ccc43bb80b67b19e0f44326fd.tar.xz |
return to form after 2fa cancelled
Diffstat (limited to 'packages/demobank-ui/src/context/navigation.ts')
-rw-r--r-- | packages/demobank-ui/src/context/navigation.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/demobank-ui/src/context/navigation.ts b/packages/demobank-ui/src/context/navigation.ts index 27fdf4649..9552bf899 100644 --- a/packages/demobank-ui/src/context/navigation.ts +++ b/packages/demobank-ui/src/context/navigation.ts @@ -16,6 +16,7 @@ import { ComponentChildren, createContext, h, VNode } from "preact"; import { useContext, useEffect, useState } from "preact/hooks"; +import { AppLocation } from "../route.js"; /** * @@ -25,7 +26,7 @@ import { useContext, useEffect, useState } from "preact/hooks"; export type Type = { path: string; params: Record<string, string>; - navigateTo: (path: string) => void; + navigateTo: (path: AppLocation) => void; // addNavigationListener: (listener: (path: string, params: Record<string, string>) => void) => (() => void); }; |