Skip to content

Commit 2a90cfb

Browse files
task: remove overview page (#21)
Signed-off-by: Carlos Feria <[email protected]>
1 parent 870ab14 commit 2a90cfb

File tree

6 files changed

+3
-290
lines changed

6 files changed

+3
-290
lines changed

client/src/app/Routes.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import { Suspense, lazy } from "react";
22
import { ErrorBoundary } from "react-error-boundary";
3-
import { useRoutes } from "react-router-dom";
3+
import { Navigate, useRoutes } from "react-router-dom";
44

55
import { Bullseye, Spinner } from "@patternfly/react-core";
66
import { ErrorFallback } from "./components/ErrorFallback";
77

8-
const Overview = lazy(() => import("./pages/Overview"));
98
const TrustRoot = lazy(() => import("./pages/TrustRoot"));
109

1110
export const AppRoutes = () => {
1211
const allRoutes = useRoutes([
13-
{ path: "/", element: <Overview /> },
12+
{ path: "/", element: <Navigate to="/trust-root" /> },
1413
{ path: "/trust-root", element: <TrustRoot /> },
1514
]);
1615

client/src/app/layout/default-layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const DefaultLayout: React.FC<DefaultLayoutProps> = ({ children }) => {
2020
masthead={<HeaderApp />}
2121
sidebar={<SidebarApp />}
2222
isManagedSidebar
23+
defaultManagedSidebarIsOpen={false}
2324
skipToContent={PageSkipToContent}
2425
mainContainerId={pageId}
2526
>

client/src/app/layout/sidebar.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,6 @@ export const SidebarApp: React.FC = () => {
1313
return (
1414
<Nav id="nav-sidebar" aria-label="Nav">
1515
<NavList>
16-
<li className={nav.navItem}>
17-
<NavLink
18-
to="/"
19-
className={({ isActive }) => {
20-
return css(LINK_CLASS, isActive ? ACTIVE_LINK_CLASS : "");
21-
}}
22-
>
23-
Overview
24-
</NavLink>
25-
</li>
2616
<li className={nav.navItem}>
2717
<NavLink
2818
to="/trust-root"

client/src/app/pages/Overview/Overview.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

client/src/app/pages/Overview/TrustOverview.tsx

Lines changed: 0 additions & 269 deletions
This file was deleted.

client/src/app/pages/Overview/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)