Skip to content

Commit

Permalink
Add confirmed at to admin page (#7050)
Browse files Browse the repository at this point in the history
* Add confirmed at to admin page

* tweak confirmed_at display

* Add date format to confirmed_at
  • Loading branch information
lcjohnso authored Feb 27, 2024
1 parent 465045c commit 3c979c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/pages/admin/user-settings/details.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import handleInputChange from '../../../lib/handle-input-change';
const UserDetails = (props) => {
const handleUserChange = handleInputChange.bind(props.user);
const created = new Date(props.user.created_at)
const confirmed = props.user.confirmed_at ? new Date(props.user.confirmed_at) : 'Not Confirmed'

function onChange(e) {
handleUserChange(e);
Expand All @@ -21,6 +22,7 @@ const UserDetails = (props) => {
<li>Display name: {props.user.display_name}</li>
<li>Email address: {props.user.email}</li>
<li>Signed up: {created.toString()}</li>
<li>Email confirmed at: {confirmed.toString()}</li>
<li>
<label>
Valid email:{' '}
Expand Down

0 comments on commit 3c979c8

Please sign in to comment.