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 &&
This commit is contained in:
TheCatLady
2021-04-15 07:46:19 -04:00
committed by GitHub
parent dceca4dd97
commit e8bbd4497a

View File

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