Skip to content

Commit

Permalink
fix(ui): dim password field when password generation option is select…
Browse files Browse the repository at this point in the history
…ed (#1427)

* fix(ui): dim password field when password generation option is selected

* fix: use ternary operator instead of &&
  • Loading branch information
TheCatLady committed Apr 15, 2021
1 parent dceca4d commit e8bbd44
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/UserList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ const UserList: React.FC = () => {
</div>
<div
className={`form-row ${
!notificationSettings?.emailEnabled && 'opacity-50'
notificationSettings?.emailEnabled ? '' : 'opacity-50'
}`}
>
<label htmlFor="genpassword" className="checkbox-label">
Expand All @@ -388,7 +388,11 @@ const UserList: React.FC = () => {
/>
</div>
</div>
<div className="form-row">
<div
className={`form-row ${
values.genpassword ? 'opacity-50' : ''
}`}
>
<label htmlFor="password" className="text-label">
{intl.formatMessage(messages.password)}
</label>
Expand Down

0 comments on commit e8bbd44

Please sign in to comment.