Skip to content

Commit

Permalink
Improve naming
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Feb 1, 2020
1 parent 6b3473d commit 4b8ca8e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const Search = props => {
);
};

const toggleSearchIconClick = useCallback(() => {
const handleSearchIcon = useCallback(() => {
loadAlgolia();

if (algoliaLoaded) {
Expand Down Expand Up @@ -94,8 +94,8 @@ const Search = props => {
className={classnames('search-icon', {
'search-icon-hidden': props.isSearchBarExpanded,
})}
onClick={toggleSearchIconClick}
onKeyDown={toggleSearchIconClick}
onClick={handleSearchIcon}
onKeyDown={handleSearchIcon}
tabIndex={0}
/>
<input
Expand Down

0 comments on commit 4b8ca8e

Please sign in to comment.