|
|
@ -239,21 +239,7 @@ export function ListProjectSolutions(props: ListProjectSolutionsProps) { |
|
|
|
<section> |
|
|
|
<section> |
|
|
|
{leavingRoadmapModal} |
|
|
|
{leavingRoadmapModal} |
|
|
|
|
|
|
|
|
|
|
|
<Pagination |
|
|
|
<div className="flex flex-col divide-y divide-gray-100 min-h-[500px]"> |
|
|
|
variant="minimal" |
|
|
|
|
|
|
|
totalPages={solutions?.totalPages || 1} |
|
|
|
|
|
|
|
currPage={solutions?.currPage || 1} |
|
|
|
|
|
|
|
perPage={solutions?.perPage || 21} |
|
|
|
|
|
|
|
totalCount={solutions?.totalCount || 0} |
|
|
|
|
|
|
|
onPageChange={(page) => { |
|
|
|
|
|
|
|
setPageState({ |
|
|
|
|
|
|
|
...pageState, |
|
|
|
|
|
|
|
currentPage: page, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="flex flex-col divide-y divide-gray-100"> |
|
|
|
|
|
|
|
{solutions?.data.map((solution, counter) => { |
|
|
|
{solutions?.data.map((solution, counter) => { |
|
|
|
const isVisited = alreadyVisitedSolutions[solution._id!]; |
|
|
|
const isVisited = alreadyVisitedSolutions[solution._id!]; |
|
|
|
const avatar = solution.user.avatar || ''; |
|
|
|
const avatar = solution.user.avatar || ''; |
|
|
@ -325,6 +311,8 @@ export function ListProjectSolutions(props: ListProjectSolutionsProps) { |
|
|
|
})} |
|
|
|
})} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{(solutions?.totalPages || 0) > 1 && ( |
|
|
|
|
|
|
|
<div className="mt-4"> |
|
|
|
<Pagination |
|
|
|
<Pagination |
|
|
|
totalPages={solutions?.totalPages || 1} |
|
|
|
totalPages={solutions?.totalPages || 1} |
|
|
|
currPage={solutions?.currPage || 1} |
|
|
|
currPage={solutions?.currPage || 1} |
|
|
@ -337,6 +325,8 @@ export function ListProjectSolutions(props: ListProjectSolutionsProps) { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}} |
|
|
|
}} |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
)} |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|