diff --git a/src/Components/ProfileList.js b/src/Components/ProfileList.js index ab99fa36..50b7d6dc 100644 --- a/src/Components/ProfileList.js +++ b/src/Components/ProfileList.js @@ -172,15 +172,15 @@ export default function Memberlist() { - { currentPage === 1 ? : setCurrentPage(currentPage - 1)} />} - { currentPage < 3 ? "" : setCurrentPage(1)} active={1 === active}>{1}} - { currentPage < 4 ? "" :} - { currentPage > 1 ? setCurrentPage(currentPage - 1)}>{currentPage - 1} : "" } - setCurrentPage(currentPage)} active={currentPage === active}>{currentPage} - { currentPage < pageAmount ? setCurrentPage(currentPage + 1)}>{currentPage + 1} : "" } - { currentPage > pageAmount - 3 ? "" : } - { currentPage > pageAmount - 2 ? "" : setCurrentPage(pageAmount)} active={pageAmount === active}>{pageAmount}} - { currentPage === pageAmount ? : setCurrentPage(currentPage + 1)} />} + { currentPage === 1 ? : setCurrentPage(currentPage - 1)} />} + { currentPage < 3 ? "" : setCurrentPage(1)} active={1 === active}>{1}} + { currentPage < 4 ? "" : currentPage < 5 ? setCurrentPage(2)} active={2 === active}>{2} : } + { currentPage > 1 ? setCurrentPage(currentPage - 1)}>{currentPage - 1} : "" } + setCurrentPage(currentPage)} active={currentPage === active}>{currentPage} + { currentPage < pageAmount ? setCurrentPage(currentPage + 1)}>{currentPage + 1} : "" } + { currentPage > pageAmount - 3 ? "" : currentPage === pageAmount - 3 ? setCurrentPage(pageAmount - 1)} active={pageAmount - 1 === active}>{pageAmount - 1} : } + { currentPage > pageAmount - 2 ? "" : setCurrentPage(pageAmount)} active={pageAmount === active}>{pageAmount}} + { currentPage === pageAmount ? : setCurrentPage(currentPage + 1)} />} { isLoading ? : isError ? @@ -189,6 +189,19 @@ export default function Memberlist() { {memberList} + + + { currentPage === 1 ? : setCurrentPage(currentPage - 1)} />} + { currentPage < 3 ? "" : setCurrentPage(1)} active={1 === active}>{1}} + { currentPage < 4 ? "" : currentPage < 5 ? setCurrentPage(2)} active={2 === active}>{2} : } + { currentPage > 1 ? setCurrentPage(currentPage - 1)}>{currentPage - 1} : "" } + setCurrentPage(currentPage)} active={currentPage === active}>{currentPage} + { currentPage < pageAmount ? setCurrentPage(currentPage + 1)}>{currentPage + 1} : "" } + { currentPage > pageAmount - 3 ? "" : currentPage === pageAmount - 3 ? setCurrentPage(pageAmount - 1)} active={pageAmount - 1 === active}>{pageAmount - 1} : } + { currentPage > pageAmount - 2 ? "" : setCurrentPage(pageAmount)} active={pageAmount === active}>{pageAmount}} + { currentPage === pageAmount ? : setCurrentPage(currentPage + 1)} />} + + }