Skip to content

Commit a921a67

Browse files
authored
Merge pull request #1463 from scroll-tech/scrollRequest
Scroll request
2 parents 435e643 + 825af0c commit a921a67

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

src/app/rollupscan/batch/[batchIndex]/blocks/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const Blocks = () => {
2626
<Box
2727
className="wrapper mx-auto"
2828
sx={{
29+
maxWidth: "130rem",
2930
marginBottom: "16rem",
3031
"& *": {
3132
fontFamily: "var(--developer-page-font-family) !important",

src/app/rollupscan/batch/[batchIndex]/chunk/[chunkIndex]/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ const Chunk = props => {
7272
<Box
7373
className="wrapper mx-auto"
7474
sx={{
75+
maxWidth: "130rem",
7576
marginBottom: "16rem",
7677
"& *": {
7778
fontFamily: "var(--developer-page-font-family) !important",

src/app/rollupscan/batch/[batchIndex]/chunks/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const Blocks = () => {
2323
<Box
2424
className="wrapper mx-auto"
2525
sx={{
26+
maxWidth: "130rem",
2627
marginBottom: "16rem",
2728
"& *": {
2829
fontFamily: "var(--developer-page-font-family) !important",

src/app/rollupscan/index/Table.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ const RollupTable = function RollupTable(props) {
155155
}
156156

157157
const handleChangePage = (e, newPage) => {
158-
searchParams.set("page", newPage)
159-
// setSearchParams(searchParams);
160-
router.push(`${pathname}?${searchParams.toString()}}`)
158+
const params = new URLSearchParams(searchParams.toString())
159+
params.set("page", newPage)
160+
router.push(`${pathname}?${params.toString()}}`)
161161
onPaginationChange({
162162
page: +searchParams.get("page"),
163163
pageSize: +searchParams.get("per_page"),

src/hooks/useRollupInfo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import useSWR from "swr"
22

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

56
export enum BLOCK_LIST_TYPE {
67
BATCH = "Batch",

0 commit comments

Comments
 (0)