From 261ba8937b670e0fe966afbdfbe746fe05892ef4 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Fri, 14 Aug 2020 12:29:21 -0500 Subject: [PATCH] Removed dismiss button from WhoToFollowPanel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Removed: - dismiss button from WhoToFollowPanel • Updated: - Account action button to be centered --- app/javascript/gabsocial/components/account.js | 2 +- .../gabsocial/components/panel/who_to_follow_panel.js | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/javascript/gabsocial/components/account.js b/app/javascript/gabsocial/components/account.js index 3d8b7c6f..7d304413 100644 --- a/app/javascript/gabsocial/components/account.js +++ b/app/javascript/gabsocial/components/account.js @@ -177,7 +177,7 @@ class Account extends ImmutablePureComponent {
-
+
({ const mapDispatchToProps = (dispatch) => ({ fetchRelatedSuggestions: () => dispatch(fetchRelatedSuggestions()), - dismissRelatedSuggestion: (account) => dispatch(dismissRelatedSuggestion(account.get('id'))), }) export default @@ -31,7 +29,6 @@ export default class WhoToFollowPanel extends ImmutablePureComponent { static propTypes = { - dismissRelatedSuggestion: PropTypes.func.isRequired, fetchRelatedSuggestions: PropTypes.func.isRequired, intl: PropTypes.object.isRequired, suggestions: ImmutablePropTypes.list.isRequired, @@ -74,7 +71,6 @@ class WhoToFollowPanel extends ImmutablePureComponent { intl, isLoading, suggestions, - dismissRelatedSuggestion, } = this.props if (suggestions.isEmpty()) return null @@ -94,11 +90,9 @@ class WhoToFollowPanel extends ImmutablePureComponent { arr.map((accountId) => ( )) }