Fixed no post issue

This commit is contained in:
Mustafa Buyukcelebi 2019-08-12 22:54:58 +03:00
parent 682920c5b4
commit e277f8915e
2 changed files with 9 additions and 6 deletions

View File

@ -53,6 +53,10 @@ class PostsContainer extends PureComponent {
pageType,
selectedOptionIndex,
tag,
isLoginDone,
isLoggedIn,
isDarkTheme,
nsfw,
} = this.props;
const { promotedPosts } = this.state;
@ -74,6 +78,10 @@ class PostsContainer extends PureComponent {
selectedOptionIndex={selectedOptionIndex}
setFeedPosts={this._setFeedPosts}
tag={tag}
isLoginDone={isLoginDone}
isLoggedIn={isLoggedIn}
isDarkTheme={isDarkTheme}
nsfw={nsfw}
/>
);
}

View File

@ -364,12 +364,7 @@ class PostsView extends Component {
initialNumToRender={10}
ListFooterComponent={this._renderFooter}
onScroll={this._handleOnScroll}
ListEmptyComponent={
<Fragment>
<PostCardPlaceHolder />
<PostCardPlaceHolder />
</Fragment>
}
ListEmptyComponent={this._renderEmptyContent}
refreshControl={
<RefreshControl
refreshing={refreshing}