Skip to content

Commit

Permalink
refactor : setup react-router-dom-v5-compat
Browse files Browse the repository at this point in the history
BrowserRouter -> CompatRouter
  • Loading branch information
omjinLTS committed Mar 25, 2024
1 parent 0f8f2fc commit 6e69221
Show file tree
Hide file tree
Showing 3 changed files with 298 additions and 504 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"react-responsive": "^9.0.2",
"react-responsive-carousel": "^3.2.23",
"react-router-dom": "^5.2.0",
"react-router-dom-v5-compat": "^6.22.3",
"react-simple-image-viewer": "^1.2.1",
"react-spinners": "^0.13.8",
"react-swipeable-views": "^0.14.0",
Expand Down
8 changes: 2 additions & 6 deletions src/PageRouter.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { lazy, Suspense } from 'react';
import {
BrowserRouter as RootRouter,
Redirect,
Route,
Switch as RootSwitch,
} from 'react-router-dom';
import { Redirect, Route, Switch as RootSwitch } from 'react-router-dom';
import { CompatRouter as RootRouter } from 'react-router-dom-v5-compat';

import { AuthRouter } from './AuthRouter';
import Loading from './components/Loading';
Expand Down
Loading

0 comments on commit 6e69221

Please sign in to comment.