147 lines
3.9 KiB
JavaScript
147 lines
3.9 KiB
JavaScript
import * as React from 'react';
|
|
import Button from '@mui/material/Button';
|
|
import TextField from '@mui/material/TextField';
|
|
import Grid from '@mui/material/Grid';
|
|
import Box from '@mui/material/Box';
|
|
import Typography from '@mui/material/Typography';
|
|
|
|
export default function ChangePassword() {
|
|
const handleSubmit = (event) => {
|
|
event.preventDefault();
|
|
const data = new FormData(event.currentTarget);
|
|
console.log({
|
|
email: data.get('email'),
|
|
password: data.get('password'),
|
|
});
|
|
};
|
|
|
|
return (
|
|
<>
|
|
<Box>
|
|
<Box
|
|
sx={{
|
|
borderBottom: '1px solid #eee',
|
|
paddingBottom: '10px'
|
|
}}
|
|
className="for-dark-bottom-border"
|
|
>
|
|
<Typography component="h1" fontWeight="500" fontSize="18px">
|
|
Security
|
|
</Typography>
|
|
|
|
<Typography fontSize="13px">
|
|
Update your password here.
|
|
</Typography>
|
|
</Box>
|
|
|
|
<Box component="form" noValidate onSubmit={handleSubmit} sx={{ mt: 3 }}>
|
|
<Grid container spacing={2}>
|
|
<Grid item xs={12} sm={12}>
|
|
<Typography
|
|
component="label"
|
|
sx={{
|
|
fontWeight: "500",
|
|
fontSize: "14px",
|
|
mb: "10px",
|
|
display: "block",
|
|
}}
|
|
>
|
|
Old Password
|
|
</Typography>
|
|
<TextField
|
|
autoComplete="old-password*"
|
|
name="oldPassword*"
|
|
fullWidth
|
|
id="oldPassword"
|
|
type="password"
|
|
autoFocus
|
|
/>
|
|
</Grid>
|
|
|
|
<Grid item xs={12} sm={12}>
|
|
<Typography
|
|
component="label"
|
|
sx={{
|
|
fontWeight: "500",
|
|
fontSize: "14px",
|
|
mb: "10px",
|
|
display: "block",
|
|
}}
|
|
>
|
|
New Password
|
|
</Typography>
|
|
<TextField
|
|
autoComplete="new-password*"
|
|
name="newPassword*"
|
|
fullWidth
|
|
id="newPassword"
|
|
type="password"
|
|
autoFocus
|
|
/>
|
|
</Grid>
|
|
|
|
<Grid item xs={12} sm={12}>
|
|
<Typography
|
|
component="label"
|
|
sx={{
|
|
fontWeight: "500",
|
|
fontSize: "14px",
|
|
mb: "10px",
|
|
display: "block",
|
|
}}
|
|
>
|
|
Confirm Password
|
|
</Typography>
|
|
<TextField
|
|
autoComplete="confirm-password*"
|
|
name="confirmPassword*"
|
|
fullWidth
|
|
id="confirmPassword"
|
|
type="password"
|
|
autoFocus
|
|
/>
|
|
</Grid>
|
|
|
|
<Grid item xs={12}>
|
|
<Typography
|
|
component="label"
|
|
sx={{
|
|
fontWeight: "500",
|
|
fontSize: "14px",
|
|
mb: "10px",
|
|
display: "block",
|
|
}}
|
|
>
|
|
Email Address
|
|
</Typography>
|
|
|
|
<TextField
|
|
fullWidth
|
|
id="email"
|
|
name="email"
|
|
type="email"
|
|
autoComplete="email"
|
|
/>
|
|
</Grid>
|
|
</Grid>
|
|
|
|
<Button
|
|
type="submit"
|
|
variant="contained"
|
|
sx={{
|
|
mt: 2,
|
|
textTransform: "capitalize",
|
|
borderRadius: "8px",
|
|
fontWeight: "500",
|
|
fontSize: "14px",
|
|
padding: "12px 30px",
|
|
color: "#fff !important"
|
|
}}
|
|
>
|
|
Change Password
|
|
</Button>
|
|
</Box>
|
|
</Box>
|
|
</>
|
|
);
|
|
} |