Skip to content

Commit

Permalink
Make the standalone work with react-router-dom tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jgyselov committed Aug 16, 2024
1 parent 7e3dc53 commit a194e3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libs/ui-lib/lib/ocm/components/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ export const UILibRoutes = ({

const routes = (
<Routes>
<Route path="assisted-installer/clusters" element={<Outlet />}>
<Route path="clusters" element={<Outlet />}>
<Route path="~new" element={<NewClusterPage />} />
<Route path=":clusterId" element={<ClusterPage />} />
<Route index element={<Clusters />} />
</Route>
{children}
<Route path="assisted-installer/*" element={<Navigate to="clusters" />} />
<Route path="*" element={<Navigate to="clusters" />} />
</Routes>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const ClusterBreadcrumbs = ({ clusterName }: { clusterName?: string }) => (
<PageSection variant={PageSectionVariants.light}>
{(clusterName || isInOcm) && (
<Breadcrumb>
<BreadcrumbItem render={() => <Link to={'/'}>Cluster List</Link>} />
<BreadcrumbItem render={() => <Link to={'/'}>Clusters</Link>} />

{clusterName ? (
<BreadcrumbItem>
Expand Down

0 comments on commit a194e3d

Please sign in to comment.