Skip to content

Commit 0e0fbee

Browse files
authored
Merge branch 'main' into dustin/Chain-Page-Verification-Requestions
2 parents f9d7cb0 + 1b103d7 commit 0e0fbee

File tree

35 files changed

+1527
-310
lines changed

35 files changed

+1527
-310
lines changed

apps/dashboard/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"next-themes": "^0.4.4",
7575
"nextjs-toploader": "^1.6.12",
7676
"openapi-types": "^12.1.3",
77+
"p-limit": "^6.2.0",
7778
"papaparse": "^5.4.1",
7879
"pluralize": "^8.0.0",
7980
"posthog-js": "1.67.1",

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/_components/claim-conditions/claim-conditions-form/index.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import {
5050
type SnapshotEntry,
5151
} from "../legacy-zod-schema";
5252
import { ResetClaimEligibility } from "../reset-claim-eligibility";
53-
import { SnapshotUpload } from "../snapshot-upload";
53+
import { SnapshotViewerSheet } from "../snapshot-upload";
5454
import { getClaimPhasesInLegacyFormat, setClaimPhasesTx } from "./hooks";
5555
import { ClaimConditionsPhase } from "./phase";
5656

@@ -511,11 +511,12 @@ export const ClaimConditionsForm: React.FC<ClaimConditionsFormProps> = ({
511511

512512
return (
513513
<Fragment key={`snapshot_${field.id}_${index}`}>
514-
<SnapshotUpload
514+
<SnapshotViewerSheet
515515
dropType={dropType}
516-
snapshotIndex={openSnapshotIndex}
517-
index={index}
518-
setOpenSnapshotIndex={setOpenSnapshotIndex}
516+
isOpen={openSnapshotIndex === index}
517+
onClose={() => {
518+
setOpenSnapshotIndex(-1);
519+
}}
519520
value={snapshotValue}
520521
setSnapshot={(snapshot) =>
521522
form.setValue(`phases.${index}.snapshot`, snapshot)

0 commit comments

Comments
 (0)