toman label

This commit is contained in:
hamid zarghami
2025-03-10 16:17:13 +03:30
parent fc268ec682
commit c6a66eaf23
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ define(['./workbox-e7681877'], (function (workbox) { 'use strict';
"revision": "3ca0b8505b4bec776b69afdba2768812"
}, {
"url": "index.html",
"revision": "0.7nnqgg3t42g"
"revision": "0.qrm0hc87vi"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
+2 -1
View File
@@ -72,7 +72,8 @@ const HeaderBuy: FC<Props> = ({ data, planId }) => {
{NumberFormat(Number(price))}
</div>
} */}
<div>{NumberFormat(Number(price))}</div>
<div>{NumberFormat(Number(price)) + ' ' + t('toman')}</div>
</div>
</div>
</div>
@@ -20,7 +20,6 @@ const ServiceHeader: FC<Props> = (props: Props) => {
const [planSelected, setPlanSelected] = useState<string>(data?.subscriptionPlans[0]?.id)
const [price, setPrice] = useState<number>(data?.subscriptionPlans[0]?.price)
// const [finalPrice, setFinalPrice] = useState<number>(0)
const [planText, setPlanText] = useState<string>('')
const buyService = useBuyService()
useEffect(() => {
@@ -28,7 +27,6 @@ const ServiceHeader: FC<Props> = (props: Props) => {
const plan: PlanItemType = data?.subscriptionPlans.find((item) => item.id === planSelected)
console.log(plan);
setPlanText(plan.name)
// setFinalPrice(plan.finalPrice)
setPrice(plan?.price)
@@ -88,7 +86,7 @@ const ServiceHeader: FC<Props> = (props: Props) => {
} */}
<div>{NumberFormat(Number(price))}</div>
</div>
<span>{planText}</span>
<span>{t('toman')}</span>
</div>
<Link to={Pages.services.buy + `${data.id}/${planSelected}`}>
<Button