Skip to content

Commit

Permalink
Disable orgs route (#39)
Browse files Browse the repository at this point in the history
feat: disable orgs route
  • Loading branch information
WhiteNik16 authored Feb 5, 2024
1 parent f8d474a commit 87e2985
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/common/AppNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ const AppNavbar = () => {
const navbarItems = useMemo(
() => [
{ route: RoutePaths.Profiles, iconComponent: <UiIcon name={Icons.Wallet} size={5} /> },
{ route: RoutePaths.Orgs, iconComponent: <UiIcon componentName={'work'} size={5} /> },
{
route: RoutePaths.Credentials,
iconComponent: <UiIcon componentName={'layers'} size={6} />,
Expand Down
3 changes: 1 addition & 2 deletions src/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import PublicLayout from './layouts/PublicLayout'

export const AppRoutes = () => {
const SignIn = lazy(() => import('@/pages/SignIn'))
const Orgs = lazy(() => import('@/pages/Orgs'))
const Credentials = lazy(() => import('@/pages/Credentials'))
const Profiles = lazy(() => import('@/pages/Profiles'))
const UiKit = lazy(() => import('@/pages/UiKit'))
Expand Down Expand Up @@ -77,7 +76,7 @@ export const AppRoutes = () => {
},
{
path: createDeepPath(RoutePaths.Orgs),
element: <Orgs />,
element: <Navigate replace to={RoutePaths.Root} />,
},
{
path: createDeepPath(RoutePaths.Credentials),
Expand Down

0 comments on commit 87e2985

Please sign in to comment.