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