1
+ import Caption from "@components/caption/Caption" ;
2
+ import Modal from "@components/modal/Modal" ;
3
+ import { paymentCaptions } from "@constants/caption" ;
4
+ import { isAxiosError } from "axios" ;
5
+ import { useEffect , useState } from "react" ;
6
+ import { FormProvider , useForm } from "react-hook-form" ;
7
+ import { useLocation , useNavigate , useParams } from "react-router-dom" ;
8
+
9
+ import PaymentButton from "./components/paymentButton/PaymentButton" ;
10
+ import * as S from "./Payment.style" ;
11
+
1
12
import { ERROR_CODE } from "@/constants/api" ;
2
13
import { PATH } from "@/constants/path" ;
3
14
import {
@@ -9,16 +20,6 @@ import PaymentInfoSection from "@/pages/paymentPage/components/paymentInfoSectio
9
20
import PaymentMethodSection from "@/pages/paymentPage/components/paymentMethodSection/PaymentMethodSection" ;
10
21
import TermsAgreementSection from "@/pages/paymentPage/components/termsAgreementSection/TermsAgreementSection" ;
11
22
import UserInfoSection from "@/pages/paymentPage/components/userInfoSection/UserInfoSection" ;
12
- import Caption from "@components/caption/Caption" ;
13
- import Modal from "@components/modal/Modal" ;
14
- import { paymentCaptions } from "@constants/caption" ;
15
- import { isAxiosError } from "axios" ;
16
- import { useEffect , useState } from "react" ;
17
- import { FormProvider , useForm } from "react-hook-form" ;
18
- import { useLocation , useNavigate , useParams } from "react-router-dom" ;
19
-
20
- import PaymentButton from "./components/paymentButton/PaymentButton" ;
21
- import * as S from "./Payment.style" ;
22
23
23
24
interface PaymentProps {
24
25
action : "default" | "cancel" | "ready" ;
0 commit comments