chore: added some more deprecation fixes for the routeRefs

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2021-10-21 14:11:42 +02:00
parent 1332a98a01
commit 8b21788e96
9 changed files with 27 additions and 34 deletions
+1 -5
View File
@@ -18,7 +18,6 @@ import React from 'react';
import { Entity } from '@backstage/catalog-model';
import { useEntity } from '@backstage/plugin-catalog-react';
import { Route, Routes } from 'react-router-dom';
import { rootCatalogKubernetesRouteRef } from './plugin';
import { KubernetesContent } from './components/KubernetesContent';
import { Button } from '@material-ui/core';
import { MissingAnnotationEmptyState } from '@backstage/core-components';
@@ -53,10 +52,7 @@ export const Router = (_props: Props) => {
) {
return (
<Routes>
<Route
path={`/${rootCatalogKubernetesRouteRef.path}`}
element={<KubernetesContent entity={entity} />}
/>
<Route path="/" element={<KubernetesContent entity={entity} />} />
</Routes>
);
}