From 30be07921a0775f6b135bdf506d8e85354377f3a Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Tue, 11 Jun 2024 11:19:50 -0700 Subject: [PATCH] Added token to route for set-new-password page --- Client/src/App.jsx | 2 +- Client/src/Pages/SetNewPassword/index.jsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Client/src/App.jsx b/Client/src/App.jsx index 6f64d45da..16774c60a 100644 --- a/Client/src/App.jsx +++ b/Client/src/App.jsx @@ -34,7 +34,7 @@ function App() { } /> } /> } /> - } /> + } /> } diff --git a/Client/src/Pages/SetNewPassword/index.jsx b/Client/src/Pages/SetNewPassword/index.jsx index 31e213c10..fc453cde1 100644 --- a/Client/src/Pages/SetNewPassword/index.jsx +++ b/Client/src/Pages/SetNewPassword/index.jsx @@ -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 (