Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] CasperCustom 폴더구조 변경 #164

Merged
merged 2 commits into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion client/src/constants/CasperCustom/customStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
EyesPanel,
MouthPanel,
StickerPanel,
} from "@/features/CasperCustom/CasperCustomPanel";
} from "@/features/CasperCustom/CasperCustomPanel/CasperCustomPanel";
import { CUSTOM_OPTION } from "./casper";

export const CUSTOM_STEP_OPTION = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { memo } from "react";
import { motion } from "framer-motion";
import { CASPER_CARD_SIZE, CASPER_SIZE_OPTION } from "@/constants/CasperCustom/casper";
import { CasperCardType } from "../CasperShowCase/TransitionCasperCards";
import { CasperCardType } from "@/features/CasperShowCase/TransitionCasperCards";
import { CasperCardBackUI } from "./CasperCardBackUI";
import { CasperCardFrontUI } from "./CasperCardFrontUI";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import { LotteryAPI } from "@/apis/lotteryAPI";
import CTAButton from "@/components/CTAButton";
import { MAX_APPLY } from "@/constants/CasperCustom/customStep";
import { DISSOLVE } from "@/constants/animation";
import { SCROLL_MOTION } from "@/constants/animation";
import { COOKIE_KEY } from "@/constants/cookie";
import { MyCasperCardFront } from "@/features/CasperCustom/CasperCard/MyCasperCardFront";
import useCasperCustomDispatchContext from "@/hooks/useCasperCustomDispatchContext";
import useCasperCustomStateContext from "@/hooks/useCasperCustomStateContext";
import useFetch from "@/hooks/useFetch";
Expand All @@ -17,9 +19,7 @@ import { GetShareLinkResponse } from "@/types/linkApi";
import { GetApplyCountResponse } from "@/types/lotteryApi";
import { saveDomImage } from "@/utils/saveDomImage";
import { writeClipboard } from "@/utils/writeClipboard";
import { SCROLL_MOTION } from "../../constants/animation";
import { Battery } from "./Battery";
import { MyCasperCardFront } from "./MyCasperCardFront";
import { Battery } from "../Battery";
import ArrowIcon from "/public/assets/icons/arrow.svg?react";

interface CasperCustomFinishProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { useEffect, useState } from "react";
import { motion } from "framer-motion";
import { CASPER_SIZE_OPTION } from "@/constants/CasperCustom/casper";
import { DISSOLVE } from "@/constants/animation";
import { SCROLL_MOTION } from "@/constants/animation";
import { CasperFlipCard } from "@/features/CasperCustom/CasperCard/CasperFlipCard";
import { CasperCardType } from "@/features/CasperShowCase/TransitionCasperCards";
import useCasperCustomStateContext from "@/hooks/useCasperCustomStateContext";
import useToast from "@/hooks/useToast";
import { SCROLL_MOTION } from "../../constants/animation";
import { CasperCardType } from "../CasperShowCase/TransitionCasperCards";
import { CasperFlipCard } from "./CasperFlipCard";

interface CasperCustomFinishingProps {
navigateNextStep: () => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import CTAButton from "@/components/CTAButton";
import TextField from "@/components/TextField";
import { CUSTOM_OPTION } from "@/constants/CasperCustom/casper";
import { DISSOLVE } from "@/constants/animation";
import { SCROLL_MOTION } from "@/constants/animation";
import { COOKIE_KEY } from "@/constants/cookie";
import { MyCasperCardFront } from "@/features/CasperCustom/CasperCard/MyCasperCardFront";
import useCasperCustomDispatchContext from "@/hooks/useCasperCustomDispatchContext";
import useCasperCustomStateContext from "@/hooks/useCasperCustomStateContext";
import useFetch from "@/hooks/useFetch";
import { CASPER_ACTION } from "@/types/casperCustom";
import { CasperInformationType, PostCasperResponse } from "@/types/lotteryApi";
import { SCROLL_MOTION } from "../../constants/animation";
import { MyCasperCardFront } from "./MyCasperCardFront";

interface CasperCustomFormProps {
navigateNextStep: () => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import CTAButton from "@/components/CTAButton";
import ListStep from "@/components/ListStep";
import { CUSTOM_OPTION_ARRAY } from "@/constants/CasperCustom/customStep";
import { DISSOLVE } from "@/constants/animation";
import { MyCasperCardFront } from "@/features/CasperCustom/MyCasperCardFront";
import { SCROLL_MOTION } from "@/constants/animation";
import { MyCasperCardFront } from "@/features/CasperCustom/CasperCard/MyCasperCardFront";
import useCasperCustomStateContext from "@/hooks/useCasperCustomStateContext";
import { getCasperOptionDescription } from "@/utils/CasperCustom/getCasperOptionDescription";
import { SCROLL_MOTION } from "../../constants/animation";

interface CasperCustomProcessProps {
handleClickNextStep: () => void;
Expand Down
8 changes: 4 additions & 4 deletions client/src/features/CasperCustom/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { CasperCustomFinish } from "./CasperCustomFinish";
export { CasperCustomFinishing } from "./CasperCustomFinishing";
export { CasperCustomProcess } from "./CasperCustomProcess";
export { CasperCustomForm } from "./CasperCustomForm";
export { CasperCustomFinish } from "./CustomProcess/CasperCustomFinish";
export { CasperCustomFinishing } from "./CustomProcess/CasperCustomFinishing";
export { CasperCustomProcess } from "./CustomProcess/CasperCustomProcess";
export { CasperCustomForm } from "./CustomProcess/CasperCustomForm";
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { useEffect, useRef, useState } from "react";
import { AnimatePresence, motion, useAnimation } from "framer-motion";
import { CASPER_CARD_SIZE, CASPER_SIZE_OPTION } from "@/constants/CasperCustom/casper";
import { CARD_TRANSITION } from "@/constants/CasperShowCase/showCase";
import { CasperFlipCard } from "@/features/CasperCustom/CasperCard/CasperFlipCard";
import useLazyLoading from "@/hooks/useLazyLoading";
import { SelectedCasperIdxType } from "@/types/casperCustom";
import { CasperFlipCard } from "../CasperCustom/CasperFlipCard";

export interface CasperCardType {
id: number;
Expand Down
Loading