fix: price variant + perfoma invoice download
This commit is contained in:
@@ -53,13 +53,15 @@ const CartSummary: FC<CartSummaryProps> = (props) => {
|
||||
</div>
|
||||
|
||||
<div className="mt-6 sm:mt-8 space-y-2 sm:space-y-3">
|
||||
<Button
|
||||
type="button"
|
||||
onClick={() => onDownloadInvoice?.()}
|
||||
className="w-full h-10 sm:h-12 rounded-lg sm:rounded-xl bg-[#303030] text-white shadow hover:bg-[#303030]/90 text-sm sm:text-base"
|
||||
>
|
||||
دانلود پیشفاکتور
|
||||
</Button>
|
||||
{onDownloadInvoice && (
|
||||
<Button
|
||||
type="button"
|
||||
onClick={() => onDownloadInvoice?.()}
|
||||
className="w-full h-10 sm:h-12 rounded-lg sm:rounded-xl bg-[#303030] text-white shadow hover:bg-[#303030]/90 text-sm sm:text-base"
|
||||
>
|
||||
دانلود پیشفاکتور
|
||||
</Button>
|
||||
)}
|
||||
<Button
|
||||
type="button"
|
||||
onClick={() => !confirmHref && onConfirm?.()}
|
||||
|
||||
Reference in New Issue
Block a user