kupos-ui-components-lib 10.3.7 → 10.3.8
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.
|
@@ -82,6 +82,7 @@ function getSeatTypeIcon(label, serviceItem) {
|
|
|
82
82
|
}
|
|
83
83
|
function SeatSection({ seatTypes, availableSeats, isSoldOut, priceColor, currencySign, removeDuplicateSeats, selectedSeatKey, onSeatSelect, isPeru, serviceItem, renderIcon, dpSeatColor, discountSeatPriceColor, isSeatIcon, isTrain, topLabelColor, tooltipColor, }) {
|
|
84
84
|
var _a;
|
|
85
|
+
console.log("🚀 ~ SeatSection ~ serviceItem:", serviceItem);
|
|
85
86
|
const uniqueSeats = getUniqueSeats(seatTypes, isTrain);
|
|
86
87
|
const sortedSeatTypes = getSortedSeatTypes(seatTypes, isTrain);
|
|
87
88
|
const numberOfSeats = getNumberOfSeats(seatTypes);
|
|
@@ -361,7 +362,7 @@ function SeatSection({ seatTypes, availableSeats, isSoldOut, priceColor, currenc
|
|
|
361
362
|
? CommonService.currency(0, currencySign)
|
|
362
363
|
: CommonService.discountedCurrency(discountSeat.discountedPrice, currencySign)))));
|
|
363
364
|
}
|
|
364
|
-
return (React.createElement("div", { className: "relative flex gap-[10px] text-[13.33px] justify-between min-h-[2.2rem]", style: isCentered ? { alignItems: "center" } : {} },
|
|
365
|
+
return isTrain && availableSeats <= 0 ? null : (React.createElement("div", { className: "relative flex gap-[10px] text-[13.33px] justify-between min-h-[2.2rem]", style: isCentered ? { alignItems: "center" } : {} },
|
|
365
366
|
React.createElement("div", { className: "flex flex-col justify-between", style: { gap: "10px" } }, renderLabels()),
|
|
366
367
|
React.createElement("div", { className: "flex flex-col justify-between absolute inset-y-0 right-0 left-1/2 h-full", style: {
|
|
367
368
|
color: isSoldOut ? "#c0c0c0" : priceColor,
|
package/package.json
CHANGED
|
@@ -147,6 +147,7 @@ function SeatSection({
|
|
|
147
147
|
topLabelColor,
|
|
148
148
|
tooltipColor,
|
|
149
149
|
}: SeatSectionProps): React.ReactElement {
|
|
150
|
+
console.log("🚀 ~ SeatSection ~ serviceItem:", serviceItem);
|
|
150
151
|
const uniqueSeats = getUniqueSeats(seatTypes, isTrain);
|
|
151
152
|
const sortedSeatTypes = getSortedSeatTypes(seatTypes, isTrain);
|
|
152
153
|
const numberOfSeats = getNumberOfSeats(seatTypes);
|
|
@@ -715,7 +716,7 @@ function SeatSection({
|
|
|
715
716
|
);
|
|
716
717
|
}
|
|
717
718
|
|
|
718
|
-
return (
|
|
719
|
+
return isTrain && availableSeats <= 0 ? null : (
|
|
719
720
|
<div
|
|
720
721
|
className="relative flex gap-[10px] text-[13.33px] justify-between min-h-[2.2rem]"
|
|
721
722
|
style={isCentered ? { alignItems: "center" } : {}}
|