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

View File

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