diff --git a/frontend/src/components/search/search-result-item.js b/frontend/src/components/search/search-result-item.js index 200dcea2e11..844d279247f 100644 --- a/frontend/src/components/search/search-result-item.js +++ b/frontend/src/components/search/search-result-item.js @@ -1,10 +1,12 @@ import React from 'react'; import PropTypes from 'prop-types'; +import classnames from 'classnames'; import { Utils } from '../../utils/utils'; const propTypes = { item: PropTypes.object.isRequired, onItemClickHandler: PropTypes.func.isRequired, + isHighlight: PropTypes.bool, }; class SearchResultItem extends React.Component { @@ -16,7 +18,6 @@ class SearchResultItem extends React.Component { render() { let item = this.props.item; - let className = item.link_content ? 'item-img' : 'lib-item-img'; let folderIconUrl = item.link_content ? Utils.getFolderIconUrl(false, 192) : Utils.getDefaultLibIconUrl(true); let fileIconUrl = item.is_dir ? folderIconUrl : Utils.getFileIconUrl(item.name, 192); @@ -25,8 +26,11 @@ class SearchResultItem extends React.Component { } return ( -