1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 02:42:48 +00:00

finished paging

This commit is contained in:
2016-09-01 04:25:58 +00:00
parent 0c531a30c2
commit f8ccec7ae0
8 changed files with 35 additions and 18 deletions

View File

@@ -43,7 +43,11 @@ export default class Index extends React.Component {
<div>
<Header />
<div class="Main">
{typeof this.page === 'undefined' && !fetching ? <Preview posts={this.props.redux.preview.posts} postLimit={this.props.redux.postLimit}/> : null}
{typeof this.page === 'undefined' && !fetching
? <Preview posts={this.props.redux.preview.posts}
postLimit={this.props.redux.postLimit}
increasePostLimit={this.props.actions.increasePostLimit}/>
: null}
{this.page === 'post' && !fetching ? <Post content={this.props.redux.post}/> : null}
{fetching ? loadingElement : null}
<Sidebar />