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

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

* fix: use ternary operator instead of &&
pull/1431/head
TheCatLady 4 years ago committed by GitHub
parent dceca4dd97
commit e8bbd4497a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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">
@ -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>

Loading…
Cancel
Save