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 { Entity } from '@backstage/catalog-model';
import React from 'react';
import { Route, Routes } from 'react-router';
import { useEntity } from '@backstage/plugin-catalog-react';
import { rootCatalogKafkaRouteRef } from './plugin';
import { KAFKA_CONSUMER_GROUP_ANNOTATION } from './constants';
import { KafkaTopicsForConsumer } from './components/ConsumerGroupOffsets/ConsumerGroupOffsets';
import { MissingAnnotationEmptyState } from '@backstage/core-components';
@@ -44,10 +43,7 @@ export const Router = (_props: Props) => {
return (
<Routes>
<Route
path={`${rootCatalogKafkaRouteRef.path}`}
element={<KafkaTopicsForConsumer />}
/>
<Route path="/" element={<KafkaTopicsForConsumer />} />
</Routes>
);
};