mirror of
https://github.com/nonebot/nonebot2.git
synced 2026-07-25 09:42:52 +00:00
🚨 fix new lint errors
This commit is contained in:
@@ -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} />;
|
||||
}}
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user