close #43
This commit is contained in:
parent
e7ec1d6357
commit
1f41575d98
|
@ -68,9 +68,11 @@ export const PostsList = (props: Props) => {
|
||||||
</GridItem>
|
</GridItem>
|
||||||
)}
|
)}
|
||||||
</Grid>
|
</Grid>
|
||||||
<Button onClick={() => handleMoreOrLess()}>
|
{posts.length > pageSize && (
|
||||||
{page * pageSize < posts.length ? 'Load More' : 'Show Less'}
|
<Button onClick={() => handleMoreOrLess()}>
|
||||||
</Button>
|
{page * pageSize < posts.length ? 'Load More' : 'Show Less'}
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue