Skip to content

Commit

Permalink
Migrate react-router to v7.0.0 & remove v7 flags
Browse files Browse the repository at this point in the history
  • Loading branch information
asiia-trilitech committed Jan 8, 2025
1 parent 70ebc41 commit 3decfa5
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 47 deletions.
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"react-refresh": "^0.16.0",
"react-remove-scroll": "^2.6.2",
"react-responsive-carousel": "^3.2.23",
"react-router-dom": "^6.28.1",
"react-router-dom": "^7.0.0",
"react-test-renderer": "^18.3.1",
"redux": "^5.0.1",
"redux-persist": "^6.0.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/embed-iframe-mainnet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@umami/embed-iframe": "workspace:^",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.28.1"
"react-router-dom": "^7.0.0"
},
"devDependencies": {
"@umami/eslint-config": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion apps/embed-iframe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"framer-motion": "^11.15.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.28.1"
"react-router-dom": "^7.0.0"
},
"devDependencies": {
"@umami/eslint-config": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
"react-redux": "^9.2.0",
"react-remove-scroll": "^2.6.2",
"react-responsive-carousel": "^3.2.23",
"react-router": "^6.28.1",
"react-router-dom": "^6.28.1",
"react-router": "^7.0.0",
"react-router-dom": "^7.0.0",
"react-test-renderer": "^18.3.1",
"redux": "^5.0.1",
"redux-persist": "^6.0.0",
Expand Down
7 changes: 1 addition & 6 deletions apps/web/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@ ReactDOM.createRoot(document.getElementById("root")!).render(
<PersistGate loading={<div>loading</div>} persistor={persistor}>
<ErrorBoundary fallback={<ErrorPage />} onError={logError}>
<ReactQueryProvider>
<BrowserRouter
future={{
v7_relativeSplatPath: true,
v7_startTransition: true,
}}
>
<BrowserRouter>
<DynamicDisclosureProvider>
<App />
</DynamicDisclosureProvider>
Expand Down
7 changes: 1 addition & 6 deletions apps/web/src/testUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,7 @@ const makeWrapper =
});

return (
<BrowserRouter
future={{
v7_relativeSplatPath: true,
v7_startTransition: true,
}}
>
<BrowserRouter>
<QueryClientProvider client={new QueryClient()}>
<Provider store={store}>
<DynamicModalContext.Provider value={dynamicModal}>
Expand Down
83 changes: 53 additions & 30 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3decfa5

Please sign in to comment.