Added action buttons to emptyMessage in AccountTimeline, ListsDirectory

• Added:
- action buttons to emptyMessage in AccountTimeline, ListsDirectory
This commit is contained in:
mgabdev
2020-10-30 16:25:33 -05:00
parent 6db1cf421b
commit 86dd626a8e
3 changed files with 59 additions and 10 deletions

View File

@@ -25,6 +25,7 @@ class ProfilePage extends ImmutablePureComponent {
unavailable,
noSidebar,
isBlocked,
isMe,
params: { username },
} = this.props
@@ -44,6 +45,7 @@ class ProfilePage extends ImmutablePureComponent {
!unavailable &&
React.cloneElement(children, {
account,
isMe,
})
}
{
@@ -68,10 +70,12 @@ const mapStateToProps = (state, { params: { username } }) => {
const isFollowing = state.getIn(['relationships', accountId, 'following'], false)
const unavailable = (me === accountId) ? false : (isBlocked || (isLocked && !isFollowing))
const isMe = me === accountId
const getAccount = makeGetAccount()
return {
isMe,
isBlocked,
unavailable,
account: accountId !== -1 ? getAccount(state, accountId) : null,