Skip to content

Commit

Permalink
[E] Adjust user messaging styles
Browse files Browse the repository at this point in the history
  • Loading branch information
1aurend committed Feb 26, 2024
1 parent a006a8e commit 731ff0f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
18 changes: 10 additions & 8 deletions client/src/backend/containers/users/Edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,18 @@ export class UsersEditContainer extends PureComponent {

return (
<>
<li>
<span>{emailMessage}</span>
</li>
{attr.trusted && (
{attr.trusted ? (
<li>
<span>{t("records.users.trusted")}</span>
</li>
)}
) : attr.adminVerified ? (
<li>
<span>{t("records.users.admin_verified")}</span>
</li>
) : null}
<li>
<span>{emailMessage}</span>
</li>
{this.noPublicEngagement && (
<li>
<span>{t("records.users.no_public_engagement")}</span>
Expand Down Expand Up @@ -233,9 +237,7 @@ export class UsersEditContainer extends PureComponent {
]}
buttonLayout="grid"
/>
<Styled.UserVerification
$warn={this.noPublicEngagement || !attr.emailConfirmed}
>
<Styled.UserVerification $warn={this.noPublicEngagement}>
{this.userVerificationList}
</Styled.UserVerification>
<section>
Expand Down
3 changes: 2 additions & 1 deletion client/src/config/app/locale/en-US/json/backend/records.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"email_verified_at": "Email confirmed {{date}}",
"email_not_verified": "Email not confirmed",
"trusted": "Trusted account",
"no_public_engagement": "Public engagement disabled"
"no_public_engagement": "Public engagement disabled",
"admin_verified": "Admin verified"
},
"pages": {
"header": "Manage Pages",
Expand Down

0 comments on commit 731ff0f

Please sign in to comment.