Removed dismiss button from WhoToFollowPanel

• Removed:
- dismiss button from WhoToFollowPanel

• Updated:
- Account action button to be centered
This commit is contained in:
mgabdev 2020-08-14 12:29:21 -05:00
parent 5a77411d2d
commit 261ba8937b
2 changed files with 1 additions and 7 deletions

View File

@ -177,7 +177,7 @@ class Account extends ImmutablePureComponent {
</NavLink>
<div className={[_s.default, _s.px10, _s.overflowHidden, _s.flexNormal].join(' ')}>
<div className={[_s.default, _s.flexRow].join(' ')}>
<div className={[_s.default, _s.flexRow, _s.alignItemsCenter].join(' ')}>
<NavLink
title={account.get('acct')}
to={`/${account.get('acct')}`}

View File

@ -1,7 +1,6 @@
import { defineMessages, injectIntl } from 'react-intl'
import {
fetchRelatedSuggestions,
dismissRelatedSuggestion,
} from '../../actions/suggestions'
import ImmutablePureComponent from 'react-immutable-pure-component'
import ImmutablePropTypes from 'react-immutable-proptypes'
@ -22,7 +21,6 @@ const mapStateToProps = (state) => ({
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) => (
<Child
compact
showDismiss
key={accountId}
id={accountId}
isSmall={isLoading ? true : undefined}
dismissAction={dismissRelatedSuggestion}
/>
))
}