Skip to content

Commit

Permalink
Try using react-router everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy committed Jan 27, 2025
1 parent b801c0d commit 96b2e8c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 20 deletions.
3 changes: 2 additions & 1 deletion apps/pigment-css-vite-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-error-boundary": "^5.0.0",
"react-router-dom": "^7.1.3",
"react-router": "^7.1.3",
"webfontloader": "^1.6.28"
},
"devDependencies": {
Expand All @@ -30,6 +30,7 @@
"@pigment-css/vite-plugin": "0.0.29",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@types/react-router": "^5.1.20",
"@types/webfontloader": "^1.6.38",
"@vitejs/plugin-react": "^4.3.4",
"postcss": "^8.4.49",
Expand Down
2 changes: 1 addition & 1 deletion apps/pigment-css-vite-app/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as ReactDOMClient from 'react-dom/client';
import * as React from 'react';
import { BrowserRouter as Router, useLocation, useRoutes } from 'react-router-dom';
import { BrowserRouter as Router, useLocation, useRoutes } from 'react-router';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import CircularProgress from '@mui/material/CircularProgress';
import CssBaseline from '@mui/material/CssBaseline';
Expand Down
2 changes: 1 addition & 1 deletion apps/pigment-css-vite-app/src/pages/fixtures/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { useLocation, matchRoutes, Link } from 'react-router-dom';
import { useLocation, matchRoutes, Link } from 'react-router';
import webfontloader from 'webfontloader';
import routes from '~react-pages';
import IndexLayout from '../../Layout';
Expand Down
2 changes: 1 addition & 1 deletion apps/pigment-css-vite-app/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Link } from 'react-router-dom';
import { Link } from 'react-router';

export default function App() {
return (
Expand Down
37 changes: 21 additions & 16 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 96b2e8c

Please sign in to comment.