From 7ed3e78f790837479fc2bb2eb6ddc40c78ce59b5 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 18 Nov 2023 09:55:23 -0300 Subject: sync page with history --- packages/aml-backoffice-ui/src/Dashboard.tsx | 83 ++-------------------- packages/aml-backoffice-ui/src/hooks/useOfficer.ts | 47 ++++++++++-- .../aml-backoffice-ui/src/hooks/useSettings.ts | 10 ++- packages/aml-backoffice-ui/src/route.ts | 77 ++++++++++---------- 4 files changed, 93 insertions(+), 124 deletions(-) diff --git a/packages/aml-backoffice-ui/src/Dashboard.tsx b/packages/aml-backoffice-ui/src/Dashboard.tsx index d111ae145..b813f83d5 100644 --- a/packages/aml-backoffice-ui/src/Dashboard.tsx +++ b/packages/aml-backoffice-ui/src/Dashboard.tsx @@ -77,75 +77,6 @@ const versionText = VERSION * writing text with the correct format */ -const pageList = Object.values(Pages); -function LeftMenu() { - const currentLocation = useCurrentLocation(pageList); - - return ( - - ); -} - - export function ExchangeAmlFrame({ children, }: { @@ -238,21 +169,21 @@ function Navigation(): VNode { ] const location = useChangeLocation(); return ( -
+