From 91b443b3edb674048527b57d07fcfb6b1dbba034 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Wed, 1 Jul 2020 21:38:29 -0400 Subject: [PATCH] Removed unused code in search feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Removed: - unused code in search feature --- app/javascript/gabsocial/features/search.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/javascript/gabsocial/features/search.js b/app/javascript/gabsocial/features/search.js index 8bcafe8c..dabb0da0 100644 --- a/app/javascript/gabsocial/features/search.js +++ b/app/javascript/gabsocial/features/search.js @@ -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 }