chore: sub duration

This commit is contained in:
Tristan Yang
2023-01-19 17:16:02 +08:00
parent fd8c54e702
commit 88d9e920f7
2 changed files with 3 additions and 3 deletions
+3 -2
View File
@@ -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 = () => {
@@ -90,7 +90,6 @@ const LicensePriceListModal: FC<Props> = ({ 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);
}}
/>