Added email field on profile page (#1311)

This commit is contained in:
akk312000 2021-10-27 07:58:54 +00:00 committed by GitHub
parent 6b79a3096d
commit 2de623ae9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@ import { toast } from 'react-toastify';
function SettingsPage(props) {
const [firstName, setFirstName] = React.useState(authenticationService.currentUserValue.first_name);
const email=authenticationService.currentUserValue.email;
const [lastName, setLastName] = React.useState(authenticationService.currentUserValue.last_name);
const [currentpassword, setCurrentPassword] = React.useState('');
const [newPassword, setNewPassword] = React.useState('');
@ -70,7 +71,7 @@ function SettingsPage(props) {
<div className="row">
<div className="col">
<div className="mb-3">
<label className="form-label">First name</label>
<label className="form-label">First name </label>
<input
type="text"
className="form-control"
@ -94,6 +95,21 @@ function SettingsPage(props) {
/>
</div>
</div>
<div className="row">
<div className="col-6">
<div className="mb-3">
<label className="form-label">Email </label>
<input
type="text"
className="form-control"
name="email"
value={email}
readonly
disabled
/>
</div>
</div>
</div>
</div>
<a