diff options
author | Sebastian <sebasjm@gmail.com> | 2022-12-19 12:23:39 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-12-19 12:23:39 -0300 |
commit | 72b429321553841ac1ff48cf974bfc65da01bb06 (patch) | |
tree | 7db9a4462f02de6cb86de695a1e64772b00ead5f /packages/merchant-backoffice-ui/src/context/instance.ts | |
parent | 770ab6f01dc81a16f384f314982bd761540f8e65 (diff) | |
download | wallet-core-72b429321553841ac1ff48cf974bfc65da01bb06.tar.xz |
pretty
Diffstat (limited to 'packages/merchant-backoffice-ui/src/context/instance.ts')
-rw-r--r-- | packages/merchant-backoffice-ui/src/context/instance.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/merchant-backoffice-ui/src/context/instance.ts b/packages/merchant-backoffice-ui/src/context/instance.ts index a45e8283c..9a25fe80c 100644 --- a/packages/merchant-backoffice-ui/src/context/instance.ts +++ b/packages/merchant-backoffice-ui/src/context/instance.ts @@ -15,21 +15,21 @@ */ /** -* -* @author Sebastian Javier Marchano (sebasjm) -*/ + * + * @author Sebastian Javier Marchano (sebasjm) + */ -import { createContext } from 'preact' -import { useContext } from 'preact/hooks' +import { createContext } from "preact"; +import { useContext } from "preact/hooks"; interface Type { id: string; token?: string; admin?: boolean; - changeToken: (t?:string) => void; + changeToken: (t?: string) => void; } -const Context = createContext<Type>({} as any) +const Context = createContext<Type>({} as any); -export const InstanceContextProvider = Context.Provider +export const InstanceContextProvider = Context.Provider; export const useInstanceContext = (): Type => useContext(Context); |