Added token to route for set-new-password page

This commit is contained in:
Alex Holliday
2024-06-11 11:19:50 -07:00
parent f3dda9f3c6
commit 30be07921a
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ function App() {
<Route path="/playground" element={<PlayGround />} />
<Route path="/forgot-password" element={<ForgotPassword />} />
<Route path="/check-email" element={<CheckEmail />} />
<Route path="/set-new-password" element={<SetNewPassword />} />
<Route path="/set-new-password/:token" element={<SetNewPassword />} />
<Route
path="/new-password-confirmed"
element={<NewPasswordConfirmed />}
@@ -6,8 +6,10 @@ import PasswordTextField from "../../Components/TextFields/Password/PasswordText
import Check from "../../Components/Check/Check";
import Button from "../../Components/Button";
import LeftArrow from "../../assets/Images/arrow-left.png";
import { useParams } from "react-router-dom";
const SetNewPassword = () => {
const { token } = useParams();
return (
<div className="set-new-password-page">
<BackgroundPattern />