diff options
author | Sebastian <sebasjm@gmail.com> | 2023-11-20 12:38:16 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-11-20 12:38:16 -0300 |
commit | 6138846050563e0dca95b0b6d792776925e4c35f (patch) | |
tree | b33cd36acf4b38d3a016506d4f7fa681c83beb63 /packages/aml-backoffice-ui/src/App.tsx | |
parent | 7ed3e78f790837479fc2bb2eb6ddc40c78ce59b5 (diff) |
new forms api
Diffstat (limited to 'packages/aml-backoffice-ui/src/App.tsx')
-rw-r--r-- | packages/aml-backoffice-ui/src/App.tsx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/packages/aml-backoffice-ui/src/App.tsx b/packages/aml-backoffice-ui/src/App.tsx index 52c86c273..d461934c0 100644 --- a/packages/aml-backoffice-ui/src/App.tsx +++ b/packages/aml-backoffice-ui/src/App.tsx @@ -4,7 +4,7 @@ import { ExchangeAmlFrame } from "./Dashboard.js"; import "./scss/main.css"; import { ExchangeApiProvider } from "./context/config.js"; import { getInitialBackendBaseURL } from "./hooks/useBackend.js"; -import { Router } from "./route.js"; +import { HashPathProvider, Router } from "./route.js"; import { Pages } from "./pages.js"; const pageList = Object.values(Pages); @@ -15,15 +15,17 @@ export function App(): VNode { return ( <TranslationProvider source={{}}> <ExchangeApiProvider baseUrl={baseUrl} frameOnError={ExchangeAmlFrame}> - <ExchangeAmlFrame> - <Router - pageList={pageList} - onNotFound={() => { - window.location.href = Pages.cases.url - return <div>not found</div>; - }} - /> - </ExchangeAmlFrame> + <HashPathProvider> + <ExchangeAmlFrame> + <Router + pageList={pageList} + onNotFound={() => { + window.location.href = Pages.cases.url + return <div>not found</div>; + }} + /> + </ExchangeAmlFrame> + </HashPathProvider> </ExchangeApiProvider> </TranslationProvider> ); |