mirror of
https://github.com/acid-info/logos-press-engine.git
synced 2025-02-23 06:38:27 +00:00
close #43
This commit is contained in:
parent
e47f492dea
commit
f54426164a
@ -68,9 +68,11 @@ export const PostsList = (props: Props) => {
|
||||
</GridItem>
|
||||
)}
|
||||
</Grid>
|
||||
<Button onClick={() => handleMoreOrLess()}>
|
||||
{page * pageSize < posts.length ? 'Load More' : 'Show Less'}
|
||||
</Button>
|
||||
{posts.length > pageSize && (
|
||||
<Button onClick={() => handleMoreOrLess()}>
|
||||
{page * pageSize < posts.length ? 'Load More' : 'Show Less'}
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user