Skip to content

Commit

Permalink
Upgrade react-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nishanbajracharya committed Oct 16, 2024
1 parent 1679f21 commit db1c113
Show file tree
Hide file tree
Showing 3 changed files with 3,180 additions and 5,454 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"react-firebase-hooks": "^2.2.0",
"react-modal": "^3.11.2",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.0",
"react-scripts": "5.0.1",
"react-toastify": "^6.0.9",
"typescript": "4.0.3",
"web-vitals": "^0.2.4",
Expand Down
2 changes: 2 additions & 0 deletions src/views/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function AuthRoute({ children, ...rest }: RouteProps) {
return (
<Route
{...rest}
// @ts-ignore
render={({ location }) =>
!user ? (
children
Expand All @@ -35,6 +36,7 @@ function PrivateRoute({ children, ...rest }: RouteProps) {
return (
<Route
{...rest}
// @ts-ignore
render={({ location }) =>
user ? (
children
Expand Down
Loading

0 comments on commit db1c113

Please sign in to comment.