Skip to content

Commit 6dd7f27

Browse files
committed
migrated change password
1 parent a80792d commit 6dd7f27

2 files changed

Lines changed: 23 additions & 4 deletions

File tree

src/app/screens/ChangePassword.tsx renamed to src/app/[locale]/change-password/ChangePassword.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import * as React from 'react';
24
import Button from '@mui/material/Button';
35
import TextField from '@mui/material/TextField';
@@ -20,13 +22,16 @@ import {
2022
import {
2123
passwordValidationRegex,
2224
passwordValidationError,
23-
} from '../constants/Validation';
24-
import { useAppDispatch } from '../hooks';
25-
import { changePassword, changePasswordInit } from '../store/profile-reducer';
25+
} from '../../constants/Validation';
26+
import { useAppDispatch } from '../../hooks';
27+
import {
28+
changePassword,
29+
changePasswordInit,
30+
} from '../../store/profile-reducer';
2631
import {
2732
selectChangePasswordError,
2833
selectChangePasswordStatus,
29-
} from '../store/profile-selectors';
34+
} from '../../store/profile-selectors';
3035
import { useSelector } from 'react-redux/es/hooks/useSelector';
3136
import { useRouter } from 'next/navigation';
3237
import { VisibilityOffOutlined, VisibilityOutlined } from '@mui/icons-material';
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { type ReactElement } from 'react';
2+
import ChangePassword from './ChangePassword';
3+
import { ReduxGateWrapper } from '../../components/ReduxGateWrapper';
4+
import { ProtectedPageWrapper } from '../../components/ProtectedPageWrapper';
5+
6+
export default function ChangePasswordPage(): ReactElement {
7+
return (
8+
<ReduxGateWrapper>
9+
<ProtectedPageWrapper>
10+
<ChangePassword />
11+
</ProtectedPageWrapper>
12+
</ReduxGateWrapper>
13+
);
14+
}

0 commit comments

Comments
 (0)