From 88d9e920f703de784757ba330495b02668134bda Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Thu, 19 Jan 2023 17:16:02 +0800 Subject: [PATCH] chore: sub duration --- src/app/config.ts | 5 +++-- src/routes/setting/License/LicensePriceListModal.tsx | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/config.ts b/src/app/config.ts index d5885b93..f0f05441 100644 --- a/src/app/config.ts +++ b/src/app/config.ts @@ -9,18 +9,19 @@ const BASE_URL = process.env.REACT_APP_RELEASE let prices: Price[] = [ { type: "subscription", + sub_dur: "year", // sub_type: "year", //day month year title: "Pro", limit: 100, pid: "price_1MN8C7GGoUDRyc3jos06bCqM", - desc: "Pro Desc", + desc: "{{Pro Desc}}", }, { type: "payment", title: "supreme", limit: 99999, pid: "price_1M5VoGGGoUDRyc3j6xhQou6D", - desc: "supreme desc", + desc: "{{supreme desc}}", } ]; export const getLicensePriceList = () => { diff --git a/src/routes/setting/License/LicensePriceListModal.tsx b/src/routes/setting/License/LicensePriceListModal.tsx index 1cefd5db..c29d0bb8 100644 --- a/src/routes/setting/License/LicensePriceListModal.tsx +++ b/src/routes/setting/License/LicensePriceListModal.tsx @@ -90,7 +90,6 @@ const LicensePriceListModal: FC = ({ closeModal }) => { values={LicensePriceList.map(({ pid, limit, type = "payment", sub_dur = "month" }) => `${pid}|${limit}|${type}|${sub_dur}`)} value={selectPrice} onChange={(v) => { - console.log("wtff", v); handlePriceSelect(v); }} />