redirect url + accordion + blog + ...
This commit is contained in:
@@ -8,7 +8,7 @@ import Link from 'next/link'
|
||||
import { DanakService } from '../types/ProductTypes'
|
||||
import RadioGroup from '@/components/RadioGroup'
|
||||
import Image from 'next/image'
|
||||
|
||||
import { CONSOLE_URL } from '@/config/const'
|
||||
type Props = {
|
||||
data: DanakService,
|
||||
}
|
||||
@@ -25,8 +25,8 @@ const ServiceHeader: FC<Props> = (props: Props) => {
|
||||
|
||||
const plan: any = data?.subscriptionPlans.find((item) => item.id === planSelected)
|
||||
|
||||
setFinalPrice(plan.finalPrice)
|
||||
setPrice(plan?.price)
|
||||
setFinalPrice(plan.price)
|
||||
setPrice(plan?.originalPrice)
|
||||
|
||||
}, [data?.subscriptionPlans, planSelected])
|
||||
|
||||
@@ -82,11 +82,11 @@ const ServiceHeader: FC<Props> = (props: Props) => {
|
||||
{NumberFormat(Number(price))}
|
||||
</div>
|
||||
}
|
||||
<div>{NumberFormat(Number(price))}</div>
|
||||
<div>{NumberFormat(Number(finalPrice))}</div>
|
||||
</div>
|
||||
<span>تومان</span>
|
||||
</div>
|
||||
<Link target='_blank' href={`https://console.danakcorp.com/services/detail/${data?.id}`}>
|
||||
<Link target='_blank' href={`${CONSOLE_URL}/other-service/buy/${data?.id}/${planSelected}`}>
|
||||
<Button
|
||||
// onClick={handleBuy}
|
||||
// isLoading={buyService.isPending}
|
||||
|
||||
Reference in New Issue
Block a user