aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/context/instance.ts
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-09-12 13:52:55 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-09-12 13:52:55 +0200
commit121a6da78504204ddf34bf05b5136e09fab0261e (patch)
treecd220a6e7168e9888b0f83219242f23744fa2cc2 /packages/merchant-backoffice-ui/src/context/instance.ts
parent5495551071a3fdc36c38deb4c1cf6f4aa5b98bd4 (diff)
parentee8993f11cf81721cc30b4473e40124c2fee0dff (diff)
Merge branch 'master' into age-withdraw
Diffstat (limited to 'packages/merchant-backoffice-ui/src/context/instance.ts')
-rw-r--r--packages/merchant-backoffice-ui/src/context/instance.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/merchant-backoffice-ui/src/context/instance.ts b/packages/merchant-backoffice-ui/src/context/instance.ts
index 9a25fe80c..3c6cc2b63 100644
--- a/packages/merchant-backoffice-ui/src/context/instance.ts
+++ b/packages/merchant-backoffice-ui/src/context/instance.ts
@@ -21,12 +21,13 @@
import { createContext } from "preact";
import { useContext } from "preact/hooks";
+import { LoginToken } from "../declaration.js";
interface Type {
id: string;
- token?: string;
+ token?: LoginToken;
admin?: boolean;
- changeToken: (t?: string) => void;
+ changeToken: (t?: LoginToken) => void;
}
const Context = createContext<Type>({} as any);