fix build error
This commit is contained in:
@@ -68,7 +68,7 @@ const CartSummary = ({ description = '', onDescriptionChange }: CartSummaryProps
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className='grid grid-cols-2 items-end gap-4'>
|
||||
<div className='flex flex-col gap-4'>
|
||||
<div>
|
||||
<div className='text-sm font-semibold'>
|
||||
{`جمع خرید: ${formatPrice(totalPrice)} تومان`}
|
||||
@@ -90,11 +90,13 @@ const CartSummary = ({ description = '', onDescriptionChange }: CartSummaryProps
|
||||
}}
|
||||
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>
|
||||
</div>
|
||||
|
||||
{!isCartEmpty && (
|
||||
{/* {!isCartEmpty && (
|
||||
<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>
|
||||
<div className='flex items-center gap-1 text-foreground'>
|
||||
@@ -102,7 +104,7 @@ const CartSummary = ({ description = '', onDescriptionChange }: CartSummaryProps
|
||||
<Minus size={16} />
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
)} */}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -32,7 +32,7 @@ export interface Food {
|
||||
foodName?: string;
|
||||
description?: string;
|
||||
desc?: string | null;
|
||||
content?: string[] | null;
|
||||
content?: string[] | string | null;
|
||||
price: number;
|
||||
image?: string | null;
|
||||
images?: FoodImage[] | null;
|
||||
|
||||
Reference in New Issue
Block a user