mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-08 04:56:45 +00:00
📝 Docs: 商店头像 skeleton (#3362)
This commit is contained in:
@ -3,6 +3,7 @@ import React, { useCallback } from "react";
|
||||
import clsx from "clsx";
|
||||
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
|
||||
import type { usePagination } from "react-use-pagination";
|
||||
|
||||
import "./styles.css";
|
||||
@ -66,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 = currentPage + 1;
|
||||
currentPage += 1;
|
||||
|
||||
if (totalPages <= MAX_LENGTH) {
|
||||
pages.push(...range(1, totalPages));
|
||||
|
Reference in New Issue
Block a user