Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/app/rollupscan/batch/[batchIndex]/blocks/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const Blocks = () => {
<Box
className="wrapper mx-auto"
sx={{
maxWidth: "130rem",
marginBottom: "16rem",
"& *": {
fontFamily: "var(--developer-page-font-family) !important",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const Chunk = props => {
<Box
className="wrapper mx-auto"
sx={{
maxWidth: "130rem",
marginBottom: "16rem",
"& *": {
fontFamily: "var(--developer-page-font-family) !important",
Expand Down
1 change: 1 addition & 0 deletions src/app/rollupscan/batch/[batchIndex]/chunks/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const Blocks = () => {
<Box
className="wrapper mx-auto"
sx={{
maxWidth: "130rem",
marginBottom: "16rem",
"& *": {
fontFamily: "var(--developer-page-font-family) !important",
Expand Down
6 changes: 3 additions & 3 deletions src/app/rollupscan/index/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ const RollupTable = function RollupTable(props) {
}

const handleChangePage = (e, newPage) => {
searchParams.set("page", newPage)
// setSearchParams(searchParams);
router.push(`${pathname}?${searchParams.toString()}}`)
const params = new URLSearchParams(searchParams.toString())
params.set("page", newPage)
router.push(`${pathname}?${params.toString()}}`)
onPaginationChange({
page: +searchParams.get("page"),
pageSize: +searchParams.get("per_page"),
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useRollupInfo.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import useSWR from "swr"

import { fetchBatchBlocksUrl, fetchBatchDetailUrl, fetchChunkBlocksUrl, fetchChunkListUrl, fetchLastBatchIndexesUrl } from "@/apis/rollupscan"
import { scrollRequest } from "@/utils/request"

export enum BLOCK_LIST_TYPE {
BATCH = "Batch",
Expand Down