🚨 fix new lint errors

This commit is contained in:
StarHeartHunt
2026-07-25 15:23:52 +08:00
parent 6a442c737d
commit e11f21c678
2 changed files with 2 additions and 3 deletions
@@ -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 <AsciinemaContainer {...props} />;
}}
+2 -2
View File
@@ -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));