mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-22 08:28:35 +00:00
Added email field on profile page (#1311)
This commit is contained in:
parent
6b79a3096d
commit
2de623ae9c
1 changed files with 17 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue