fix: price variant + perfoma invoice download

This commit is contained in:
hamid zarghami
2025-10-26 13:12:02 +03:30
parent 5a14c2ec24
commit 10b395577a
5 changed files with 238 additions and 13 deletions
+9 -7
View File
@@ -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?.()}