Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90f04ab commit 6ffd38bCopy full SHA for 6ffd38b
site/components/Redirect.test.tsx
site/components/Redirect.tsx
site/pages/index.tsx
@@ -1,6 +1,6 @@
1
import React from "react"
2
3
-import { Redirect } from "../components"
+import { Navigate } from "react-router-dom"
4
import { FullScreenLoader } from "../components/Loader/FullScreenLoader"
5
import { useUser } from "../contexts/UserContext"
6
@@ -9,7 +9,7 @@ const IndexPage: React.FC = () => {
9
10
if (me) {
11
// Once the user is logged in, just redirect them to /projects as the landing page
12
- return <Redirect to="/projects" />
+ return <Navigate to="/projects" replace={true}/>
13
}
14
15
return <FullScreenLoader />
0 commit comments