Fix more whitespace and comment discrepancies

This commit is contained in:
Claire
2023-11-15 13:19:17 +01:00
parent 7e5d00720b
commit 1023c2f90b
24 changed files with 23 additions and 36 deletions

View File

@@ -82,13 +82,9 @@ class Search extends PureComponent {
};
handleClear = e => {
const {
onClear,
submitted,
value,
} = this.props;
const { value, submitted, onClear } = this.props;
e.preventDefault(); // Prevents focus change ??
e.preventDefault();
if (value.length > 0 || submitted) {
onClear();
@@ -160,6 +156,7 @@ class Search extends PureComponent {
search.forget(e);
}
}
break;
}
};
@@ -342,6 +339,7 @@ class Search extends PureComponent {
<Icon id='search' className={hasValue ? '' : 'active'} />
<Icon id='times-circle' className={hasValue ? 'active' : ''} />
</div>
<div className='search__popout'>
{options.length === 0 && (
<>
@@ -361,6 +359,7 @@ class Search extends PureComponent {
</div>
</>
)}
{options.length > 0 && (
<>
<h4><FormattedMessage id='search_popout.quick_actions' defaultMessage='Quick actions' /></h4>