diff --git a/.changeset/gorgeous-boats-prove.md b/.changeset/gorgeous-boats-prove.md new file mode 100644 index 0000000000..46e72db735 --- /dev/null +++ b/.changeset/gorgeous-boats-prove.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-bazaar': patch +--- + +Fixed broken routing by removing the wrapping `Router` from the `RoutedTabs` children. diff --git a/plugins/bazaar/package.json b/plugins/bazaar/package.json index 43f443ffce..f78a4f08fe 100644 --- a/plugins/bazaar/package.json +++ b/plugins/bazaar/package.json @@ -41,8 +41,7 @@ "react-use": "^17.2.4" }, "peerDependencies": { - "react": "^16.13.1 || ^17.0.0", - "react-router-dom": "6.0.0-beta.0 || ^6.3.0" + "react": "^16.13.1 || ^17.0.0" }, "devDependencies": { "@backstage/cli": "^0.19.0-next.1", diff --git a/plugins/bazaar/src/components/HomePage/HomePage.tsx b/plugins/bazaar/src/components/HomePage/HomePage.tsx index b34b7ac949..cec7171c20 100644 --- a/plugins/bazaar/src/components/HomePage/HomePage.tsx +++ b/plugins/bazaar/src/components/HomePage/HomePage.tsx @@ -16,7 +16,6 @@ import React from 'react'; import { Header, RoutedTabs } from '@backstage/core-components'; -import { Route } from 'react-router-dom'; import { SortView } from '../SortView'; import { About } from '../About'; @@ -25,12 +24,12 @@ export const HomePage = () => { { path: '/', title: 'Home', - children: } />, + children: , }, { path: '/about', title: 'About', - children: } />, + children: , }, ]; diff --git a/yarn.lock b/yarn.lock index d50db888eb..d8e81821f8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4168,7 +4168,6 @@ __metadata: react-use: ^17.2.4 peerDependencies: react: ^16.13.1 || ^17.0.0 - react-router-dom: 6.0.0-beta.0 || ^6.3.0 languageName: unknown linkType: soft