Skip to content

Commit

Permalink
Merge pull request #1463 from scroll-tech/scrollRequest
Browse files Browse the repository at this point in the history
Scroll request
  • Loading branch information
Holybasil authored Feb 19, 2025
2 parents 435e643 + 825af0c commit a921a67
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
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

0 comments on commit a921a67

Please sign in to comment.