chore: sub duration
This commit is contained in:
+3
-2
@@ -9,18 +9,19 @@ const BASE_URL = process.env.REACT_APP_RELEASE
|
|||||||
let prices: Price[] = [
|
let prices: Price[] = [
|
||||||
{
|
{
|
||||||
type: "subscription",
|
type: "subscription",
|
||||||
|
sub_dur: "year",
|
||||||
// sub_type: "year", //day month year
|
// sub_type: "year", //day month year
|
||||||
title: "Pro",
|
title: "Pro",
|
||||||
limit: 100,
|
limit: 100,
|
||||||
pid: "price_1MN8C7GGoUDRyc3jos06bCqM",
|
pid: "price_1MN8C7GGoUDRyc3jos06bCqM",
|
||||||
desc: "Pro Desc",
|
desc: "{{Pro Desc}}",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "payment",
|
type: "payment",
|
||||||
title: "supreme",
|
title: "supreme",
|
||||||
limit: 99999,
|
limit: 99999,
|
||||||
pid: "price_1M5VoGGGoUDRyc3j6xhQou6D",
|
pid: "price_1M5VoGGGoUDRyc3j6xhQou6D",
|
||||||
desc: "supreme desc",
|
desc: "{{supreme desc}}",
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
export const getLicensePriceList = () => {
|
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}`)}
|
values={LicensePriceList.map(({ pid, limit, type = "payment", sub_dur = "month" }) => `${pid}|${limit}|${type}|${sub_dur}`)}
|
||||||
value={selectPrice}
|
value={selectPrice}
|
||||||
onChange={(v) => {
|
onChange={(v) => {
|
||||||
console.log("wtff", v);
|
|
||||||
handlePriceSelect(v);
|
handlePriceSelect(v);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user