mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 08:48:53 +00:00
Fix more whitespace and comment discrepancies
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user