kupos-ui-components-lib 5.0.0 → 5.0.1
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.
|
@@ -271,12 +271,13 @@ function PeruServiceItemDesktop({ serviceItem, onBookButtonPress, colors, metaDa
|
|
|
271
271
|
// Seat type icon logic
|
|
272
272
|
const getSeatTypeIcon = (seatLabel) => {
|
|
273
273
|
var _a, _b, _c, _d;
|
|
274
|
+
// Icon keys follow the seat{degrees}Icon format in serviceItem.icons
|
|
274
275
|
if (seatLabel.includes("180°"))
|
|
275
|
-
return (_a = serviceItem.icons) === null || _a === void 0 ? void 0 : _a.
|
|
276
|
+
return (_a = serviceItem.icons) === null || _a === void 0 ? void 0 : _a.seat180Icon;
|
|
276
277
|
if (seatLabel.includes("160°"))
|
|
277
|
-
return (_b = serviceItem.icons) === null || _b === void 0 ? void 0 : _b.
|
|
278
|
+
return (_b = serviceItem.icons) === null || _b === void 0 ? void 0 : _b.seat160Icon;
|
|
278
279
|
if (seatLabel.includes("140°"))
|
|
279
|
-
return (_c = serviceItem.icons) === null || _c === void 0 ? void 0 : _c.
|
|
280
|
+
return (_c = serviceItem.icons) === null || _c === void 0 ? void 0 : _c.seat140Icon;
|
|
280
281
|
return (_d = serviceItem.icons) === null || _d === void 0 ? void 0 : _d.seatFallBackIcon;
|
|
281
282
|
};
|
|
282
283
|
const getSeatNames = () => {
|
package/package.json
CHANGED
|
@@ -366,9 +366,10 @@ function PeruServiceItemDesktop({
|
|
|
366
366
|
|
|
367
367
|
// Seat type icon logic
|
|
368
368
|
const getSeatTypeIcon = (seatLabel: string) => {
|
|
369
|
-
|
|
370
|
-
if (seatLabel.includes("
|
|
371
|
-
if (seatLabel.includes("
|
|
369
|
+
// Icon keys follow the seat{degrees}Icon format in serviceItem.icons
|
|
370
|
+
if (seatLabel.includes("180°")) return serviceItem.icons?.seat180Icon;
|
|
371
|
+
if (seatLabel.includes("160°")) return serviceItem.icons?.seat160Icon;
|
|
372
|
+
if (seatLabel.includes("140°")) return serviceItem.icons?.seat140Icon;
|
|
372
373
|
|
|
373
374
|
return serviceItem.icons?.seatFallBackIcon;
|
|
374
375
|
};
|