diff --git a/web/pages/links.tsx b/web/pages/links.tsx index 8a2e6767..774bfffe 100644 --- a/web/pages/links.tsx +++ b/web/pages/links.tsx @@ -20,6 +20,7 @@ import dayjs from 'dayjs' import customParseFormat from 'dayjs/plugin/customParseFormat' import { ManalinkCardFromView } from 'web/components/manalink-card' import { Pagination } from 'web/components/pagination' +import { Manalink } from 'common/manalink' dayjs.extend(customParseFormat) const LINKS_PER_PAGE = 24 @@ -39,10 +40,6 @@ export default function LinkPage() { (l.maxUses == null || l.claimedUserIds.length < l.maxUses) && (l.expiresTime == null || l.expiresTime > Date.now()) ) - const [page, setPage] = useState(0) - const start = page * LINKS_PER_PAGE - const end = start + LINKS_PER_PAGE - const displayedLinks = unclaimedLinks.slice(start, end) if (user == null) { return null @@ -71,6 +68,35 @@ export default function LinkPage() { don't yet have a Manifold account.