diff --git a/src/components/pages/chapter/nftList.tsx b/src/components/pages/chapter/nftList.tsx index 30840cd1..75cde516 100644 --- a/src/components/pages/chapter/nftList.tsx +++ b/src/components/pages/chapter/nftList.tsx @@ -5,13 +5,16 @@ import NoImage from 'images/no_img.png' import { useTranslation } from 'react-i18next' import { SubCard } from 'components/Card' import ShareIcon from 'images/icons/share.svg' +import { useState } from 'react' +import Pagination from '../artist/Pagination' export default function NFTList({ collections, theme }) { + const [currentPage, setCurrentPage] = useState(1) const { t } = useTranslation() const seekhypeBaseUrl = new URL(getConfig().SEEKHYPE_URL).origin return (
- {collections?.map((collection, index) => ( + {collections?.slice(currentPage * 2 - 2, currentPage * 2)?.map((collection, index) => ( ))} + {!!collections.length && ( + + )}
) }