From e11f21c678993076362be122817383836c6cfbd5 Mon Sep 17 00:00:00 2001 From: StarHeartHunt Date: Sat, 25 Jul 2026 15:23:52 +0800 Subject: [PATCH] :rotating_light: fix new lint errors --- website/src/components/Asciinema/index.tsx | 1 - website/src/components/Paginate/index.tsx | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/website/src/components/Asciinema/index.tsx b/website/src/components/Asciinema/index.tsx index cadd4840..42bca482 100644 --- a/website/src/components/Asciinema/index.tsx +++ b/website/src/components/Asciinema/index.tsx @@ -20,7 +20,6 @@ export default function Asciinema(props: Props): React.ReactNode { } > {() => { - // eslint-disable-next-line @typescript-eslint/no-var-requires const AsciinemaContainer = require("./container.tsx").default; return ; }} diff --git a/website/src/components/Paginate/index.tsx b/website/src/components/Paginate/index.tsx index 7049c766..f21b68ec 100644 --- a/website/src/components/Paginate/index.tsx +++ b/website/src/components/Paginate/index.tsx @@ -26,7 +26,7 @@ export type Props = Pick< export default function Paginate({ className, totalPages, - currentPage, + currentPage: currentPageProp, setPreviousPage, setNextPage, setPage, @@ -67,7 +67,7 @@ export default function Paginate({ const even = MAX_LENGTH % 2 === 0 ? 1 : 0; const left = Math.floor(MAX_LENGTH / 2); const right = totalPages - left + even + 1; - currentPage += 1; + const currentPage = currentPageProp + 1; if (totalPages <= MAX_LENGTH) { pages.push(...range(1, totalPages));