Skip to content

Commit 2bc659f

Browse files
ryancbahanclaude
andcommitted
Remove react-router-dom, render Extensions directly
The Routes component used a catch-all route (path="*") that always rendered <Extensions />. No actual routing was happening. Render the component directly in App.tsx and remove the Routes wrapper, its directory, and the react-router-dom dependency. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 85adf20 commit 2bc659f

5 files changed

Lines changed: 2 additions & 51 deletions

File tree

packages/ui-extensions-dev-console/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"qrcode.react": "^4.2.0",
1919
"react": "^18.2.0",
2020
"react-dom": "^18.2.0",
21-
"react-router-dom": "^6.14.2",
2221
"react-toastify": "^9.1.3",
2322
"react-transition-group": "^4.4.5"
2423
},

packages/ui-extensions-dev-console/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Layout} from '@/foundation/Layout'
2-
import {Routes} from '@/foundation/Routes'
2+
import {Extensions} from '@/sections/Extensions'
33
import {Toast} from '@/foundation/Toast'
44
import {Theme} from '@/foundation/Theme'
55
import {ModalContainer} from '@/foundation/ModalContainer'
@@ -29,7 +29,7 @@ function App() {
2929
<ExtensionServerProvider options={extensionServerOptions}>
3030
<Theme>
3131
<Layout>
32-
<Routes />
32+
<Extensions />
3333
<Toast />
3434
<ModalContainer />
3535
</Layout>

packages/ui-extensions-dev-console/src/foundation/Routes/Routes.tsx

Lines changed: 0 additions & 13 deletions
This file was deleted.

packages/ui-extensions-dev-console/src/foundation/Routes/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

pnpm-lock.yaml

Lines changed: 0 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)