From 5bb2da9364112b8737cab3c9773127b45410abcb Mon Sep 17 00:00:00 2001 From: OraldoDoci <117348307+OraldoDoci@users.noreply.github.com> Date: Tue, 22 Oct 2024 11:34:30 +0200 Subject: [PATCH] [SELC-5367] Temporarly hide sidebar for users --- src/pages/dashboard/Dashboard.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/dashboard/Dashboard.tsx b/src/pages/dashboard/Dashboard.tsx index fedff8b5..31d3c694 100644 --- a/src/pages/dashboard/Dashboard.tsx +++ b/src/pages/dashboard/Dashboard.tsx @@ -175,7 +175,8 @@ const Dashboard = () => { }, [authorizedDelegableProducts, isPT, hasDelegation, canAggregatorSeeHandleDelegations]); // Check if the current route matches any path in the array - const paths = [DASHBOARD_ROUTES.ADD_DELEGATE.path, `${ENV.ROUTES.USERS}/add`]; + // TODO `${ENV.ROUTES.USERS}/add` add after release in PROD + const paths = [DASHBOARD_ROUTES.ADD_DELEGATE.path]; const match = matchPath(location.pathname, { path: paths,