Added token to route for set-new-password page
This commit is contained in:
1 parent
f3dda9f3c6
commit
30be07921a
2 files changed
+3
-1
No files matched your search
+1
-1
@@ -34,7 +34,7 @@ function App() {
|
|||||||
<Route path="/playground" element={<PlayGround />} />
|
<Route path="/playground" element={<PlayGround />} />
|
||||||
<Route path="/forgot-password" element={<ForgotPassword />} />
|
<Route path="/forgot-password" element={<ForgotPassword />} />
|
||||||
<Route path="/check-email" element={<CheckEmail />} />
|
<Route path="/check-email" element={<CheckEmail />} />
|
||||||
<Route path="/set-new-password" element={<SetNewPassword />} />
|
<Route path="/set-new-password/:token" element={<SetNewPassword />} />
|
||||||
<Route
|
<Route
|
||||||
path="/new-password-confirmed"
|
path="/new-password-confirmed"
|
||||||
element={<NewPasswordConfirmed />}
|
element={<NewPasswordConfirmed />}
|
||||||
|
|||||||
@@ -6,8 +6,10 @@ import PasswordTextField from "../../Components/TextFields/Password/PasswordText
|
|||||||
import Check from "../../Components/Check/Check";
|
import Check from "../../Components/Check/Check";
|
||||||
import Button from "../../Components/Button";
|
import Button from "../../Components/Button";
|
||||||
import LeftArrow from "../../assets/Images/arrow-left.png";
|
import LeftArrow from "../../assets/Images/arrow-left.png";
|
||||||
|
import { useParams } from "react-router-dom";
|
||||||
|
|
||||||
const SetNewPassword = () => {
|
const SetNewPassword = () => {
|
||||||
|
const { token } = useParams();
|
||||||
return (
|
return (
|
||||||
<div className="set-new-password-page">
|
<div className="set-new-password-page">
|
||||||
<BackgroundPattern />
|
<BackgroundPattern />
|
||||||
|
|||||||
Reference in new issue
Block a user