free service

This commit is contained in:
hamid zarghami
2025-08-17 15:11:04 +03:30
parent 75ee19231a
commit 00aa85477a
3 changed files with 6 additions and 3 deletions
+1
View File
@@ -66,6 +66,7 @@
"logout": "خروج", "logout": "خروج",
"support": "سرویس های پشتیبانی" "support": "سرویس های پشتیبانی"
}, },
"free": "رایگان",
"header": { "header": {
"search": "جستجو", "search": "جستجو",
"wallet": "کیف پول", "wallet": "کیف پول",
+1 -1
View File
@@ -72,7 +72,7 @@ const HeaderBuy: FC<Props> = ({ data, planId }) => {
{NumberFormat(Number(price))} {NumberFormat(Number(price))}
</div> </div>
} */} } */}
<div>{NumberFormat(Number(price)) + ' ' + t('toman')}</div> <div>{price === 0 ? t('free') : NumberFormat(Number(price)) + ' ' + t('toman')}</div>
</div> </div>
</div> </div>
@@ -82,9 +82,11 @@ const ServiceHeader: FC<Props> = (props: Props) => {
{NumberFormat(Number(price))} {NumberFormat(Number(price))}
</div> </div>
} }
<div>{NumberFormat(Number(finalPrice))}</div> <div>{finalPrice === 0 ? t('free') : NumberFormat(Number(finalPrice))}</div>
</div> </div>
<span>{t('toman')}</span> {
finalPrice !== 0 && <span>{t('toman')}</span>
}
</div> </div>
{ {
planSelected && planSelected &&