diff --git a/src/App.tsx b/src/App.tsx
index 6e212ac..300c26e 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -21,6 +21,8 @@ import Messages from './pages/admin/Messages';
import Settings from './pages/admin/Settings';
import CategoriesPage from './pages/CategoriesPage';
+import ResetPassword from './pages/ResetPassword';
+import NewPassword from './pages/NewPassword';
const App = () => {
const { data, error, isLoading } = useGetProductsQuery();
const dispatch = useDispatch();
@@ -69,7 +71,17 @@ const App = () => {
{
path: 'categories/:categoryId',
element: ,
- }
+ },
+ {
+ path: '/reset-password',
+ children: [
+ { path: '', element: },
+ {
+ path: ':token',
+ element: ,
+ },
+ ],
+ },
],
},
{
diff --git a/src/components/authentication/LoginComponent.tsx b/src/components/authentication/LoginComponent.tsx
index 38cc55c..09b179c 100644
--- a/src/components/authentication/LoginComponent.tsx
+++ b/src/components/authentication/LoginComponent.tsx
@@ -6,7 +6,7 @@ import GoogleIcon from '../../assets/googleIcon.svg';
import Button from '../common/Button';
import Input from '../common/Input';
import { loginSchema, LoginData } from '../../utils/schemas';
-import { useNavigate, useLocation, useSearchParams } from 'react-router-dom';
+import { useNavigate, useLocation, useSearchParams, Link } from 'react-router-dom';
import { useSelector, useDispatch } from 'react-redux';
import { setToken, setUser, setRole } from '../../redux/slices/userSlice';
import { useLoginUserMutation } from '../../services/authAPI';
@@ -120,7 +120,9 @@ const LoginComponent = () => {
{...register('password')}
error={errors.password && errors.password.message}
/>
-
Forget password
+
+ Forget password
+