kupos-ui-components-lib 3.0.5 → 3.0.6
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.
|
@@ -345,9 +345,8 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
345
345
|
left: "70%",
|
|
346
346
|
right: 0,
|
|
347
347
|
justifyContent: getNumberOfSeats() < 2 ? "center" : "",
|
|
348
|
-
} }, (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.available_seats) <= 0
|
|
349
|
-
|
|
350
|
-
? null
|
|
348
|
+
} }, (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.available_seats) <= 0
|
|
349
|
+
? `${currencySign}0`
|
|
351
350
|
: getSeatPrice()))),
|
|
352
351
|
React.createElement("div", null,
|
|
353
352
|
React.createElement("button", { onClick: () => (!isSoldOut ? checkMidnight() : null), disabled: serviceDetailsLoading, className: `w-full ${serviceDetailsLoading || isSoldOut ? "py-[12px]" : "py-[12px]"} text-[13.33px] font-bold text-white rounded-[10px] border-none px-[20px] flex items-center justify-center`, style: {
|
|
@@ -47,9 +47,8 @@ function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, o
|
|
|
47
47
|
// marginLeft: "10px",
|
|
48
48
|
color: isSoldOut ? "#bbb" : "#464647",
|
|
49
49
|
} }, type.label),
|
|
50
|
-
React.createElement("span", { className: "min-[420]:text-[13px] text-[11px] bold-text", style: { color: isSoldOut ? "#bbb" : colors.seatPriceColor } }, (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.
|
|
51
|
-
|
|
52
|
-
? null
|
|
50
|
+
React.createElement("span", { className: "min-[420]:text-[13px] text-[11px] bold-text", style: { color: isSoldOut ? "#bbb" : colors.seatPriceColor } }, (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.available_seats) <= 0
|
|
51
|
+
? `${currencySign}0`
|
|
53
52
|
: commonService.currency(type.fare, currencySign))));
|
|
54
53
|
});
|
|
55
54
|
return seatTypes;
|
package/package.json
CHANGED
|
@@ -635,9 +635,12 @@ function ServiceItemPB({
|
|
|
635
635
|
justifyContent: getNumberOfSeats() < 2 ? "center" : "",
|
|
636
636
|
}}
|
|
637
637
|
>
|
|
638
|
-
{serviceItem?.available_seats <= 0 &&
|
|
638
|
+
{/* {serviceItem?.available_seats <= 0 &&
|
|
639
639
|
serviceItem?.operator_service_name === "Pullman San Andrés"
|
|
640
640
|
? null
|
|
641
|
+
: getSeatPrice()} */}
|
|
642
|
+
{serviceItem?.available_seats <= 0
|
|
643
|
+
? `${currencySign}0`
|
|
641
644
|
: getSeatPrice()}
|
|
642
645
|
</div>
|
|
643
646
|
</div>
|
|
@@ -87,9 +87,13 @@ function ServiceItemMobile({
|
|
|
87
87
|
className={"min-[420]:text-[13px] text-[11px] bold-text"}
|
|
88
88
|
style={{ color: isSoldOut ? "#bbb" : colors.seatPriceColor }}
|
|
89
89
|
>
|
|
90
|
-
{serviceItem?.operator_service_name === "Pullman San Andrés" &&
|
|
90
|
+
{/* {serviceItem?.operator_service_name === "Pullman San Andrés" &&
|
|
91
91
|
serviceItem?.available_seats <= 0
|
|
92
92
|
? null
|
|
93
|
+
: commonService.currency(type.fare, currencySign)} */}
|
|
94
|
+
|
|
95
|
+
{serviceItem?.available_seats <= 0
|
|
96
|
+
? `${currencySign}0`
|
|
93
97
|
: commonService.currency(type.fare, currencySign)}
|
|
94
98
|
</span>
|
|
95
99
|
</div>
|