toman label
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ define(['./workbox-e7681877'], (function (workbox) { 'use strict';
|
|||||||
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
||||||
}, {
|
}, {
|
||||||
"url": "index.html",
|
"url": "index.html",
|
||||||
"revision": "0.7nnqgg3t42g"
|
"revision": "0.qrm0hc87vi"
|
||||||
}], {});
|
}], {});
|
||||||
workbox.cleanupOutdatedCaches();
|
workbox.cleanupOutdatedCaches();
|
||||||
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
||||||
|
|||||||
@@ -72,7 +72,8 @@ const HeaderBuy: FC<Props> = ({ data, planId }) => {
|
|||||||
{NumberFormat(Number(price))}
|
{NumberFormat(Number(price))}
|
||||||
</div>
|
</div>
|
||||||
} */}
|
} */}
|
||||||
<div>{NumberFormat(Number(price))}</div>
|
<div>{NumberFormat(Number(price)) + ' ' + t('toman')}</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ const ServiceHeader: FC<Props> = (props: Props) => {
|
|||||||
const [planSelected, setPlanSelected] = useState<string>(data?.subscriptionPlans[0]?.id)
|
const [planSelected, setPlanSelected] = useState<string>(data?.subscriptionPlans[0]?.id)
|
||||||
const [price, setPrice] = useState<number>(data?.subscriptionPlans[0]?.price)
|
const [price, setPrice] = useState<number>(data?.subscriptionPlans[0]?.price)
|
||||||
// const [finalPrice, setFinalPrice] = useState<number>(0)
|
// const [finalPrice, setFinalPrice] = useState<number>(0)
|
||||||
const [planText, setPlanText] = useState<string>('')
|
|
||||||
const buyService = useBuyService()
|
const buyService = useBuyService()
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -28,7 +27,6 @@ const ServiceHeader: FC<Props> = (props: Props) => {
|
|||||||
const plan: PlanItemType = data?.subscriptionPlans.find((item) => item.id === planSelected)
|
const plan: PlanItemType = data?.subscriptionPlans.find((item) => item.id === planSelected)
|
||||||
console.log(plan);
|
console.log(plan);
|
||||||
|
|
||||||
setPlanText(plan.name)
|
|
||||||
// setFinalPrice(plan.finalPrice)
|
// setFinalPrice(plan.finalPrice)
|
||||||
setPrice(plan?.price)
|
setPrice(plan?.price)
|
||||||
|
|
||||||
@@ -88,7 +86,7 @@ const ServiceHeader: FC<Props> = (props: Props) => {
|
|||||||
} */}
|
} */}
|
||||||
<div>{NumberFormat(Number(price))}</div>
|
<div>{NumberFormat(Number(price))}</div>
|
||||||
</div>
|
</div>
|
||||||
<span>{planText}</span>
|
<span>{t('toman')}</span>
|
||||||
</div>
|
</div>
|
||||||
<Link to={Pages.services.buy + `${data.id}/${planSelected}`}>
|
<Link to={Pages.services.buy + `${data.id}/${planSelected}`}>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user