From 4c87573972f7c2646e5b35add6c617013259bf0f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 4 Jun 2022 15:31:24 -0500 Subject: [PATCH] HomeTimeline: remove suggestions --- app/soapbox/features/home_timeline/index.js | 38 ++++++--------------- 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/app/soapbox/features/home_timeline/index.js b/app/soapbox/features/home_timeline/index.js index 01276be6d..f93887713 100644 --- a/app/soapbox/features/home_timeline/index.js +++ b/app/soapbox/features/home_timeline/index.js @@ -5,17 +5,12 @@ import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; -import BundleContainer from 'soapbox/features/ui/containers/bundle_container'; import { getFeatures } from 'soapbox/utils/features'; import { expandHomeTimeline } from '../../actions/timelines'; import { Column } from '../../components/ui'; import Timeline from '../ui/components/timeline'; -function FollowRecommendationsContainer() { - return import(/* webpackChunkName: "features/follow_recommendations" */'soapbox/features/follow_recommendations/components/follow_recommendations_container'); -} - const messages = defineMessages({ title: { id: 'column.home', defaultMessage: 'Home' }, }); @@ -92,37 +87,24 @@ class HomeTimeline extends React.PureComponent { } } - handleDone = e => { - this.props.dispatch(expandHomeTimeline()); - this.setState({ done: true }); - } - handleRefresh = () => { const { dispatch } = this.props; return dispatch(expandHomeTimeline()); } render() { - const { intl, siteTitle, isLoading, loadingFailed, isEmpty, features } = this.props; - const { done } = this.state; - const showSuggestions = features.suggestions && isEmpty && !isLoading && !loadingFailed && !done; + const { intl, siteTitle } = this.props; return ( - - {showSuggestions ? ( - - {Component => } - - ) : ( - }} />} - /> - )} + + }} />} + /> ); }