From 37b1d5cbea98951199e1c729bcf31c004ddaff0f Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 16 May 2024 16:58:40 -0400 Subject: [PATCH] Add more public paths to toolbar check --- src/apps/experimental/components/AppToolbar/index.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/apps/experimental/components/AppToolbar/index.tsx b/src/apps/experimental/components/AppToolbar/index.tsx index 6a3016cafa..e8626fd397 100644 --- a/src/apps/experimental/components/AppToolbar/index.tsx +++ b/src/apps/experimental/components/AppToolbar/index.tsx @@ -18,6 +18,14 @@ interface AppToolbarProps { onDrawerButtonClick: (event: React.MouseEvent) => void } +const PUBLIC_PATHS = [ + '/addserver.html', + '/selectserver.html', + '/login.html', + '/forgotpassword.html', + '/forgotpasswordpin.html' +]; + const ExperimentalAppToolbar: FC = ({ isDrawerAvailable, isDrawerOpen, @@ -29,7 +37,7 @@ const ExperimentalAppToolbar: FC = ({ if (location.pathname === '/video') return null; const isTabsAvailable = isTabPath(location.pathname); - const isPublicPath = location.pathname === '/selectserver.html'; + const isPublicPath = PUBLIC_PATHS.includes(location.pathname); return (