Removed unused code in search feature
• Removed: - unused code in search feature
This commit is contained in:
parent
5d52cd60b0
commit
91b443b3ed
@ -1,7 +1,6 @@
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { fetchSuggestions, dismissSuggestion } from '../actions/suggestions'
|
||||
import { me } from '../initial_state'
|
||||
import HashtagItem from '../components/hashtag_item'
|
||||
import GroupListItem from '../components/group_list_item'
|
||||
@ -14,14 +13,8 @@ const mapStateToProps = (state) => ({
|
||||
suggestions: state.getIn(['suggestions', 'items']),
|
||||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
fetchSuggestions: () => dispatch(fetchSuggestions()),
|
||||
dismissSuggestion: account => dispatch(dismissSuggestion(account.get('id'))),
|
||||
});
|
||||
|
||||
export default
|
||||
@withRouter
|
||||
@connect(mapStateToProps, mapDispatchToProps)
|
||||
class Search extends ImmutablePureComponent {
|
||||
|
||||
static propTypes = {
|
||||
@ -37,8 +30,6 @@ class Search extends ImmutablePureComponent {
|
||||
const { results, location } = this.props
|
||||
const { isSmallScreen } = this.state
|
||||
|
||||
// console.log("results:", results)
|
||||
|
||||
if (results.isEmpty() && isSmallScreen) {
|
||||
return null
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user