@codesinger0/shared-components 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -79,19 +79,19 @@ const LargeItemCard = ({
|
|
|
79
79
|
)}
|
|
80
80
|
|
|
81
81
|
<div className="py-4 mb-4">
|
|
82
|
-
<RoundButton
|
|
83
|
-
variant="primary"
|
|
84
|
-
onClick={onButtonClick}
|
|
85
|
-
disabled={amountAvailable !== undefined && amountAvailable <= 0}
|
|
86
|
-
>
|
|
87
|
-
{buttonLabel}
|
|
88
|
-
</RoundButton>
|
|
89
|
-
|
|
90
82
|
{/* Sold Out Badge */}
|
|
91
|
-
{amountAvailable !== undefined && amountAvailable <= 0
|
|
92
|
-
<div className="z-20 bg-red-500 text-white px-8 py-3 rounded-lg text-
|
|
83
|
+
{amountAvailable !== undefined && amountAvailable <= 0 ? (
|
|
84
|
+
<div className="inline-block z-20 bg-red-500 text-white px-8 py-3 rounded-lg text-lg font-bold shadow-2xl">
|
|
93
85
|
{soldOutLabel}
|
|
94
86
|
</div>
|
|
87
|
+
) : (
|
|
88
|
+
<RoundButton
|
|
89
|
+
variant="primary"
|
|
90
|
+
onClick={onButtonClick}
|
|
91
|
+
disabled={amountAvailable !== undefined && amountAvailable <= 0}
|
|
92
|
+
>
|
|
93
|
+
{buttonLabel}
|
|
94
|
+
</RoundButton>
|
|
95
95
|
)}
|
|
96
96
|
</div>
|
|
97
97
|
|