Skip to content

Commit

Permalink
feat: add on Bottom at the end of project list
Browse files Browse the repository at this point in the history
  • Loading branch information
bakansm committed Jan 13, 2024
1 parent a3094ca commit bdf66e7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/potlock/widget/Components/ListSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,14 @@ const Tag = styled.div`
}
`;

const OnBottom = styled.div`
width: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 20px 0;
`;

return (
<Container>
<Header>
Expand Down Expand Up @@ -252,5 +260,6 @@ return (
<InfiniteScroll loadMore={loadProjects} hasMore={lastNumberOfProject < totalProjects.length}>
<ProjectList>{displayProject}</ProjectList>
</InfiniteScroll>
{lastNumberOfProject >= totalProjects.length && <OnBottom>On bottom</OnBottom>}
</Container>
);

0 comments on commit bdf66e7

Please sign in to comment.