🐛 fix(api): Server and order

This commit is contained in:
web@ppanel
2024-11-26 14:58:23 +07:00
parent 229d36bfec
commit 255bd8219c
17 changed files with 49 additions and 34 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ export default function Page() {
<SubscribeBilling
order={{
...data,
coupon: data?.reduction,
coupon_discount: data?.coupon_discount,
quantity: data?.quantity,
unit_price: data?.subscribe?.unit_price,
type: data?.type,
@@ -10,8 +10,8 @@ interface SubscribeBillingProps {
subscribe_id?: number;
quantity?: number;
price?: number;
reduction?: number;
coupon?: number;
discount?: number;
coupon_discount?: number;
fee_amount?: number;
amount?: number;
unit_price?: number;
@@ -42,13 +42,13 @@ export function SubscribeBilling({ order }: SubscribeBillingProps) {
<li>
<span className='text-muted-foreground'>{t('productDiscount')}</span>
<span>
<Display type='currency' value={order?.reduction} />
<Display type='currency' value={order?.discount} />
</span>
</li>
<li>
<span className='text-muted-foreground'>{t('couponDiscount')}</span>
<span>
<Display type='currency' value={order?.coupon} />
<Display type='currency' value={order?.coupon_discount} />
</span>
</li>
<li>
@@ -40,7 +40,7 @@ export default function Page() {
return (
<>
<Tabs value={group} onValueChange={setGroup} className='space-y-4'>
{groups?.length && (
{groups && groups.length > 0 && (
<>
<h1 className='text-muted-foreground w-full'>{t('category')}</h1>
<TabsList>
+1 -1
View File
@@ -22,7 +22,7 @@ export default function Page() {
<div className='flex bg-cover bg-center lg:w-1/2 lg:flex-auto'>
<div className='lg:py-15 md:px-15 flex w-full flex-col items-center justify-center px-5 py-7'>
<Link className='mb-0 flex flex-col items-center lg:mb-12' href='/'>
<Image src={site.site_logo} height={48} width={48} alt='logo' />
<Image src={site.site_logo} height={48} width={48} alt='logo' unoptimized />
<span className='text-2xl font-semibold'>{site.site_name}</span>
</Link>
<LoginIcon className='mx-auto hidden w-[275px] md:w-1/2 lg:block xl:w-[500px]' />