Skip to content

Commit 5f09091

Browse files
committed
Move claim condition components in app router folder (no code change) (#5049)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on restructuring the file organization of the `claim-conditions` components, moving them from a nested path to a more streamlined directory. It also updates import paths accordingly. ### Detailed summary - Moved `claim-conditions` components to `_components` directory. - Updated import paths in several files to reflect the new structure. - Adjusted the layout of the `ClaimConditions` component to use `w-full`. - Removed the import of `SnapshotUpload` from its old path and imported it from the new location. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent d08b9be commit 5f09091

File tree

20 files changed

+7
-7
lines changed

20 files changed

+7
-7
lines changed

apps/dashboard/src/contract-ui/tabs/claim-conditions/components/claim-conditions-form/hooks.ts renamed to apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/_components/claim-conditions/claim-conditions-form/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import type { z } from "zod";
1515
import type {
1616
ClaimCondition as LegacyClaimCondition,
1717
ClaimConditionInputSchema as LegacyClaimConditionInputSchema,
18-
} from "../../legacy-zod-schema";
18+
} from "../legacy-zod-schema";
1919

2020
type SnapshotEntry = {
2121
address: string;

apps/dashboard/src/contract-ui/tabs/claim-conditions/components/claim-conditions-form/index.tsx renamed to apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/_components/claim-conditions/claim-conditions-form/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
Spinner,
1717
} from "@chakra-ui/react";
1818
import { TransactionButton } from "components/buttons/TransactionButton";
19-
import { SnapshotUpload } from "contract-ui/tabs/claim-conditions/components/snapshot-upload";
2019
import { useTrack } from "hooks/analytics/useTrack";
2120
import { useTxNotifications } from "hooks/useTxNotifications";
2221
import { CircleHelpIcon, PlusIcon } from "lucide-react";
@@ -46,8 +45,9 @@ import {
4645
type ClaimConditionInput,
4746
ClaimConditionInputSchema,
4847
type SnapshotEntry,
49-
} from "../../legacy-zod-schema";
48+
} from "../legacy-zod-schema";
5049
import { ResetClaimEligibility } from "../reset-claim-eligibility";
50+
import { SnapshotUpload } from "../snapshot-upload";
5151
import { getClaimPhasesInLegacyFormat, setClaimPhasesTx } from "./hooks";
5252
import { ClaimConditionsPhase } from "./phase";
5353

0 commit comments

Comments
 (0)