Bazaar plugin: Remove 'Router' as 'RoutedTabs' children

During the 'react-router-dom' upgrades the Bazaar routing broke. This
patch removes the wrapping 'Router' from the 'RouterTabs' children.

Opening the Bazaar plugin would result in the followin error:

"A <Route> is only ever to be used as the child of <Routes> element,
never rendered directly. Please wrap your <Route> in a <Routes>."

Also removed 'react-router-dom' as a peer dependency of the bazaar
plugin.

Signed-off-by: Niklas Aronsson <niklasar@axis.com>
This commit is contained in:
Niklas Aronsson
2022-09-09 18:10:48 +02:00
parent 173e3aab6e
commit 1dd12349d1
4 changed files with 8 additions and 6 deletions
+1 -2
View File
@@ -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",