original price
This commit is contained in:
@@ -218,6 +218,7 @@
|
||||
"add_plan": "افزودن پلن",
|
||||
"time": "مدت زمان",
|
||||
"price": "قیمت",
|
||||
"original_price": "قیمت اصلی",
|
||||
"cancel": "لغو",
|
||||
"submit_plan": "ثبت پلن",
|
||||
"error_submit": "حداقل یک پلن باید اضافه شود",
|
||||
|
||||
@@ -36,6 +36,7 @@ const Plans: FC = () => {
|
||||
<tr>
|
||||
<Td text={t('title')} />
|
||||
<Td text={t('plan.time')} />
|
||||
<Td text={t('plan.original_price')} />
|
||||
<Td text={t('plan.price')} />
|
||||
<Td text={t('status')} />
|
||||
<Td text={''} />
|
||||
@@ -47,6 +48,7 @@ const Plans: FC = () => {
|
||||
<tr key={item.id} className='tr'>
|
||||
<Td text={item.name} />
|
||||
<Td text={item.duration + ''} />
|
||||
<Td text={NumberFormat(+item.originalPrice)} />
|
||||
<Td text={NumberFormat(+item.price)} />
|
||||
<Td text={''}>
|
||||
<ToggleStatusPlan defaultActive={item.isActive} id={item.id} />
|
||||
|
||||
@@ -79,6 +79,7 @@ export type PlanItemType = {
|
||||
price: string | number;
|
||||
isActive: boolean;
|
||||
createdAt: string;
|
||||
originalPrice: string | number;
|
||||
};
|
||||
|
||||
export type UpdatePlanType = {
|
||||
|
||||
Reference in New Issue
Block a user