Removed dismiss button from WhoToFollowPanel
• Removed: - dismiss button from WhoToFollowPanel • Updated: - Account action button to be centered
This commit is contained in:
parent
5a77411d2d
commit
261ba8937b
@ -177,7 +177,7 @@ class Account extends ImmutablePureComponent {
|
|||||||
</NavLink>
|
</NavLink>
|
||||||
|
|
||||||
<div className={[_s.default, _s.px10, _s.overflowHidden, _s.flexNormal].join(' ')}>
|
<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
|
<NavLink
|
||||||
title={account.get('acct')}
|
title={account.get('acct')}
|
||||||
to={`/${account.get('acct')}`}
|
to={`/${account.get('acct')}`}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import {
|
import {
|
||||||
fetchRelatedSuggestions,
|
fetchRelatedSuggestions,
|
||||||
dismissRelatedSuggestion,
|
|
||||||
} from '../../actions/suggestions'
|
} from '../../actions/suggestions'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
@ -22,7 +21,6 @@ const mapStateToProps = (state) => ({
|
|||||||
|
|
||||||
const mapDispatchToProps = (dispatch) => ({
|
const mapDispatchToProps = (dispatch) => ({
|
||||||
fetchRelatedSuggestions: () => dispatch(fetchRelatedSuggestions()),
|
fetchRelatedSuggestions: () => dispatch(fetchRelatedSuggestions()),
|
||||||
dismissRelatedSuggestion: (account) => dispatch(dismissRelatedSuggestion(account.get('id'))),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
export default
|
export default
|
||||||
@ -31,7 +29,6 @@ export default
|
|||||||
class WhoToFollowPanel extends ImmutablePureComponent {
|
class WhoToFollowPanel extends ImmutablePureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
dismissRelatedSuggestion: PropTypes.func.isRequired,
|
|
||||||
fetchRelatedSuggestions: PropTypes.func.isRequired,
|
fetchRelatedSuggestions: PropTypes.func.isRequired,
|
||||||
intl: PropTypes.object.isRequired,
|
intl: PropTypes.object.isRequired,
|
||||||
suggestions: ImmutablePropTypes.list.isRequired,
|
suggestions: ImmutablePropTypes.list.isRequired,
|
||||||
@ -74,7 +71,6 @@ class WhoToFollowPanel extends ImmutablePureComponent {
|
|||||||
intl,
|
intl,
|
||||||
isLoading,
|
isLoading,
|
||||||
suggestions,
|
suggestions,
|
||||||
dismissRelatedSuggestion,
|
|
||||||
} = this.props
|
} = this.props
|
||||||
|
|
||||||
if (suggestions.isEmpty()) return null
|
if (suggestions.isEmpty()) return null
|
||||||
@ -94,11 +90,9 @@ class WhoToFollowPanel extends ImmutablePureComponent {
|
|||||||
arr.map((accountId) => (
|
arr.map((accountId) => (
|
||||||
<Child
|
<Child
|
||||||
compact
|
compact
|
||||||
showDismiss
|
|
||||||
key={accountId}
|
key={accountId}
|
||||||
id={accountId}
|
id={accountId}
|
||||||
isSmall={isLoading ? true : undefined}
|
isSmall={isLoading ? true : undefined}
|
||||||
dismissAction={dismissRelatedSuggestion}
|
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user