fix build error
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -68,7 +68,7 @@ const CartSummary = ({ description = '', onDescriptionChange }: CartSummaryProps
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='grid grid-cols-2 items-end gap-4'>
|
<div className='flex flex-col gap-4'>
|
||||||
<div>
|
<div>
|
||||||
<div className='text-sm font-semibold'>
|
<div className='text-sm font-semibold'>
|
||||||
{`جمع خرید: ${formatPrice(totalPrice)} تومان`}
|
{`جمع خرید: ${formatPrice(totalPrice)} تومان`}
|
||||||
@@ -90,11 +90,13 @@ const CartSummary = ({ description = '', onDescriptionChange }: CartSummaryProps
|
|||||||
}}
|
}}
|
||||||
className={isCartEmpty ? 'pointer-events-none opacity-60' : ''}
|
className={isCartEmpty ? 'pointer-events-none opacity-60' : ''}
|
||||||
>
|
>
|
||||||
<Button disabled={isCartEmpty}>{t('ButtonCheckout')}</Button>
|
<div className='flex justify-end'>
|
||||||
|
<Button className='!w-fit px-4' disabled={isCartEmpty}>{t('ButtonCheckout')}</Button>
|
||||||
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{!isCartEmpty && (
|
{/* {!isCartEmpty && (
|
||||||
<div className='flex items-center justify-between rounded-xl border border-border px-4 py-3 text-xs text-muted-foreground'>
|
<div className='flex items-center justify-between rounded-xl border border-border px-4 py-3 text-xs text-muted-foreground'>
|
||||||
<span>{t('CartControlsHint', { defaultValue: 'برای ویرایش تعداد، از دکمههای هر آیتم استفاده کنید.' })}</span>
|
<span>{t('CartControlsHint', { defaultValue: 'برای ویرایش تعداد، از دکمههای هر آیتم استفاده کنید.' })}</span>
|
||||||
<div className='flex items-center gap-1 text-foreground'>
|
<div className='flex items-center gap-1 text-foreground'>
|
||||||
@@ -102,7 +104,7 @@ const CartSummary = ({ description = '', onDescriptionChange }: CartSummaryProps
|
|||||||
<Minus size={16} />
|
<Minus size={16} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)} */}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export interface Food {
|
|||||||
foodName?: string;
|
foodName?: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
desc?: string | null;
|
desc?: string | null;
|
||||||
content?: string[] | null;
|
content?: string[] | string | null;
|
||||||
price: number;
|
price: number;
|
||||||
image?: string | null;
|
image?: string | null;
|
||||||
images?: FoodImage[] | null;
|
images?: FoodImage[] | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user