diff options
author | Sebastian <sebasjm@gmail.com> | 2024-04-30 14:21:01 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-04-30 14:21:15 -0300 |
commit | 20d2861508df18da18e66c94a5a268067565121b (patch) | |
tree | 24421fb8c797d50d5ad6bc7c6ff6460f469b5e11 /packages/aml-backoffice-ui/src/App.tsx | |
parent | 84adb1e78e49057cdcee15c71ad788f56bb0fff9 (diff) | |
download | wallet-core-20d2861508df18da18e66c94a5a268067565121b.tar.xz |
testing aml form as json
Diffstat (limited to 'packages/aml-backoffice-ui/src/App.tsx')
-rw-r--r-- | packages/aml-backoffice-ui/src/App.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/aml-backoffice-ui/src/App.tsx b/packages/aml-backoffice-ui/src/App.tsx index d55de776b..9ccf21755 100644 --- a/packages/aml-backoffice-ui/src/App.tsx +++ b/packages/aml-backoffice-ui/src/App.tsx @@ -25,23 +25,23 @@ import { useEffect, useState } from "preact/hooks"; import { SWRConfig } from "swr"; import { ExchangeAmlFrame } from "./ExchangeAmlFrame.js"; import { Routing } from "./Routing.js"; -import { SettingsProvider } from "./context/settings.js"; +import { UiSettingsProvider } from "./context/ui-settings.js"; import { strings } from "./i18n/strings.js"; import "./scss/main.css"; -import { UiSettings, fetchSettings } from "./settings.js"; +import { UiSettings, fetchUiSettings } from "./context/ui-settings.js"; const WITH_LOCAL_STORAGE_CACHE = false; export function App(): VNode { const [settings, setSettings] = useState<UiSettings>(); useEffect(() => { - fetchSettings(setSettings); + fetchUiSettings(setSettings); }, []); if (!settings) return <Loading />; const baseUrl = getInitialBackendBaseURL(settings.backendBaseURL); return ( - <SettingsProvider value={settings}> + <UiSettingsProvider value={settings}> <TranslationProvider source={strings} completeness={{ @@ -86,7 +86,7 @@ export function App(): VNode { </SWRConfig> </ExchangeApiProvider> </TranslationProvider> - </SettingsProvider> + </UiSettingsProvider> ); } |