diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-21 12:11:31 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-26 16:57:55 -0300 |
commit | 8aa9ce6d20b41b7eb9b438a56ccd34cb0da35f80 (patch) | |
tree | 5cec8219a136469f2c689c47a74b28e52eb5992b /packages/merchant-backoffice-ui/src/context/backend.ts | |
parent | 5a1f528d8806bcb15d5c4c8364554502c11931a7 (diff) | |
download | wallet-core-8aa9ce6d20b41b7eb9b438a56ccd34cb0da35f80.tar.gz wallet-core-8aa9ce6d20b41b7eb9b438a56ccd34cb0da35f80.tar.bz2 wallet-core-8aa9ce6d20b41b7eb9b438a56ccd34cb0da35f80.zip |
wip
Diffstat (limited to 'packages/merchant-backoffice-ui/src/context/backend.ts')
-rw-r--r-- | packages/merchant-backoffice-ui/src/context/backend.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/merchant-backoffice-ui/src/context/backend.ts b/packages/merchant-backoffice-ui/src/context/backend.ts index 6f2fd2aff..f78236216 100644 --- a/packages/merchant-backoffice-ui/src/context/backend.ts +++ b/packages/merchant-backoffice-ui/src/context/backend.ts @@ -1,6 +1,6 @@ /* This file is part of GNU Taler - (C) 2021-2023 Taler Systems S.A. + (C) 2021-2024 Taler Systems S.A. GNU Taler is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -53,7 +53,7 @@ function useBackendContextState( }; } -export const BackendContextProvider = ({ +const BackendContextProvider = ({ children, defaultUrl, }: { @@ -65,5 +65,5 @@ export const BackendContextProvider = ({ return h(BackendContext.Provider, { value, children }); }; -export const useBackendContext = (): BackendContextType => +const useBackendContext = (): BackendContextType => useContext(BackendContext); |