loading enhanced

This commit is contained in:
u-e 2018-12-19 14:35:11 +03:00
parent d13c2bd5ee
commit 599a4174c4
2 changed files with 8 additions and 16 deletions

View File

@ -32,9 +32,9 @@ class PostsContainer extends Component {
};
render() {
const { currentAccount, isLoginDone } = this.props;
const { currentAccount, isLoginDone, tag } = this.props;
if (!isLoginDone) {
if (!isLoginDone && !tag) {
return (
<Fragment>
<PostCardPlaceHolder />

View File

@ -121,20 +121,12 @@ class ProfileScreen extends Component {
})}
style={styles.postTabBar}
>
{user && (
<Posts
filterOptions={[
'NEW POSTS',
'VOTES',
'REPLIES',
'MENTIONS',
'FOLLOWS',
'REBLOGS',
]}
getFor="blog"
tag={username}
/>
)}
<Posts
filterOptions={['NEW POSTS', 'VOTES', 'REPLIES', 'MENTIONS', 'FOLLOWS', 'REBLOGS']}
getFor="blog"
tag={username}
key={username}
/>
</View>
<View
tabLabel={intl.formatMessage({