diff --git a/src/api/resources/Palmistry.ts b/src/api/resources/Palmistry.ts index 1e63920..bba6244 100644 --- a/src/api/resources/Palmistry.ts +++ b/src/api/resources/Palmistry.ts @@ -4,10 +4,19 @@ export interface Payload { formData: FormData; } -export type Response = IPalmistryLine[]; +export type Response = { + fingers: IPalmistryFinger[]; + lines: IPalmistryLine[]; +}; + +export interface IPalmistryFinger { + name: string; + point: IPalmistryPoint; +} export interface IPalmistryLine { - line: string; + name: string; + line: number; points: IPalmistryPoint[]; } diff --git a/src/components/Modal/index.tsx b/src/components/Modal/index.tsx index 009f600..d3e0236 100644 --- a/src/components/Modal/index.tsx +++ b/src/components/Modal/index.tsx @@ -7,6 +7,7 @@ interface ModalProps { isCloseButtonVisible?: boolean; className?: string; containerClassName?: string; + type?: "hidden" | "normal"; onClose?: () => void; } @@ -16,6 +17,7 @@ function Modal({ isCloseButtonVisible = true, className = "", containerClassName = "", + type = "normal", onClose, }: ModalProps): JSX.Element { const handleClose = (event: React.MouseEvent) => { @@ -34,9 +36,14 @@ function Modal({ }; }, [open]); - if (!open) return <>>; + if (!open && type === "normal") return <>>; return ( -
{t("we_dont_share")}
- You will be charged only{" "} - ${getPrice(_activeProduct)} for your 3-day trial. -
-- We`ll email you a reminder before your trial period - ends. -
- > - )} - -- Cancel anytime. The charge will appear on your bill as witapps. -
-1123 Rimer Dr Moraga, California 94556
-Total today:
-${(products[0]?.trialPrice / 100).toFixed(2) || 0}
++ ${(products[0]?.trialPrice / 100).toFixed(2) || 0} +
Save $10 every period
- You will be charged only ${(products[0]?.trialPrice / 100).toFixed(2) || 0} for your 7-day trial.{" "} + You will be charged only{" "} + + ${(products[0]?.trialPrice / 100).toFixed(2) || 0} for your 7-day + trial. + {" "} Subscription renews automatically until cancelled. You{" "} can cancel at any time before the end of the trial.
diff --git a/src/components/pages/TrialPayment/components/PaymentModal/styles.module.css b/src/components/pages/TrialPayment/components/PaymentModal/styles.module.css deleted file mode 100644 index 5bc386a..0000000 --- a/src/components/pages/TrialPayment/components/PaymentModal/styles.module.css +++ /dev/null @@ -1,54 +0,0 @@ -.payment-modal { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - min-height: 250px; - gap: 25px; - color: #2f2e37; -} - -.payment-modal.hide { - min-height: 0; - height: 0; - opacity: 0; -} - -.title { - font-weight: 700; - font-size: 20px; - line-height: 20px; - text-align: center; - margin: 0; -} - -.sub-plan-description { - font-size: 12px; - text-align: center; - line-height: 150%; -} - -.payment-method-container { - width: 100%; - display: flex; - flex-direction: column; - gap: 24px; -} - -.address { - margin-bottom: 24px; - text-transform: uppercase; -} - -.payment-method { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - gap: 16px; -} - -.address { - color: gray; - font-size: 10px; -} diff --git a/src/components/pages/TrialPayment/index.tsx b/src/components/pages/TrialPayment/index.tsx index d783f1a..8882b47 100755 --- a/src/components/pages/TrialPayment/index.tsx +++ b/src/components/pages/TrialPayment/index.tsx @@ -16,7 +16,7 @@ import OftenAsk from "./components/OftenAsk"; import { useEffect, useState } from "react"; import WithPartnerInformation from "./components/WithPartnerInformation"; import Modal from "@/components/Modal"; -import PaymentModal from "./components/PaymentModal"; +import PaymentModal from "@/components/PaymentModal"; import { trialPaymentPointsList } from "@/data/pointsLists"; import { trialPaymentReviews } from "@/data/reviews"; import { usePaywall } from "@/hooks/paywall/usePaywall"; @@ -111,8 +111,9 @@ function TrialPaymentPage() { containerClassName={styles.modal} open={isOpenPaymentModal} onClose={handleDiscount} + type="hidden" > -{JSON.stringify(lines, null, 2)} */}