diff --git a/app/javascript/gabsocial/components/panel/hashtags_panel.js b/app/javascript/gabsocial/components/panel/hashtags_panel.js deleted file mode 100644 index 8744d8cf..00000000 --- a/app/javascript/gabsocial/components/panel/hashtags_panel.js +++ /dev/null @@ -1,64 +0,0 @@ -import { injectIntl, defineMessages } from 'react-intl' -import { fetchHashtags } from '../../actions/hashtags' -import ImmutablePureComponent from 'react-immutable-pure-component' -import ImmutablePropTypes from 'react-immutable-proptypes' -import PanelLayout from './panel_layout' -import HashtagItem from '../hashtag_item' - -const messages = defineMessages({ - title: { id: 'hashtags.title', defaultMessage: 'Popular Hashtags' }, - show_all: { id: 'groups.sidebar-panel.show_all', defaultMessage: 'Show all' }, -}) - -const mapStateToProps = (state) => ({ - hashtags: state.getIn(['hashtags', 'items']), -}) - -const mapDispatchToProps = (dispatch) => ({ - fetchHashtags: () => dispatch(fetchHashtags()), -}) - -export default -@connect(mapStateToProps, mapDispatchToProps) -@injectIntl -class HashtagsPanel extends ImmutablePureComponent { - - static propTypes = { - hashtags: ImmutablePropTypes.list.isRequired, - fetchHashtags: PropTypes.func.isRequired, - intl: PropTypes.object.isRequired, - } - - updateOnProps = [ - 'hashtags', - ] - - componentDidMount() { - this.props.fetchHashtags() - } - - render() { - const { intl, hashtags } = this.props - - if (hashtags.isEmpty()) { - return null - } - - return ( - -
- { - hashtags.map(hashtag => ( - - )) - } -
-
- ) - } -} \ No newline at end of file