mozrest-sdk-react-dev 0.1.71 → 0.1.72

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.
package/mozrest-sdk.es.js CHANGED
@@ -99265,11 +99265,11 @@ const ReservationDetail = ({ open, onClose: onClose2, venueId, reloadMainTable,
99265
99265
  isLoading: isExecuting
99266
99266
  }));
99267
99267
  };
99268
- const timeSlot = "_timeSlot_1rz9z_1";
99268
+ const timeSlot = "_timeSlot_1d7nu_1";
99269
99269
  var styles$6 = {
99270
99270
  timeSlot,
99271
- "timeSlot-active-true": "_timeSlot-active-true_1rz9z_5",
99272
- "timeSlot-active-false": "_timeSlot-active-false_1rz9z_8"
99271
+ "timeSlot-active-true": "_timeSlot-active-true_1d7nu_6",
99272
+ "timeSlot-active-false": "_timeSlot-active-false_1d7nu_9"
99273
99273
  };
99274
99274
  const FilterForm = ({ currentDate }) => {
99275
99275
  const { t: t2 } = useTranslation();
@@ -99327,15 +99327,18 @@ const TableFilters = ({ params, setParams, reload, currentTimeZone, currentDate
99327
99327
  currentDate
99328
99328
  })));
99329
99329
  };
99330
- const TableRow = ({ row: row2 }) => {
99330
+ const TableRow = ({ row: row2, currentTimeZone }) => {
99331
99331
  const formatHour = (hour2) => {
99332
- return hooks.utc(hour2, "HH:mm").local().format("H:mm");
99332
+ const utcHour2 = moment$1.utc(hour2, "HH:mm");
99333
+ return moment$1.tz(`${utcHour2}`, currentTimeZone ? currentTimeZone : "").format("H:mm");
99333
99334
  };
99334
99335
  return /* @__PURE__ */ React__default.createElement("div", {
99335
99336
  style: { display: "flex", flexDirection: "column" }
99337
+ }, /* @__PURE__ */ React__default.createElement("div", {
99338
+ style: { display: "block", height: 20 }
99336
99339
  }, /* @__PURE__ */ React__default.createElement("small", {
99337
- className: ""
99338
- }, row2.name), /* @__PURE__ */ React__default.createElement("div", {
99340
+ style: { position: "fixed", cursor: "default" }
99341
+ }, row2.name)), /* @__PURE__ */ React__default.createElement("div", {
99339
99342
  style: { display: "flex", gap: 3 }
99340
99343
  }, row2 && row2.slots && row2.slots.length && row2.slots.length > 0 ? row2.slots.map((slot2, index2) => /* @__PURE__ */ React__default.createElement("div", {
99341
99344
  key: index2
@@ -99343,13 +99346,14 @@ const TableRow = ({ row: row2 }) => {
99343
99346
  className: classNames$2(styles$6["timeSlot"], styles$6[`timeSlot-active-${slot2.available ? "true" : "false"}`])
99344
99347
  }, formatHour(slot2.time)))) : null));
99345
99348
  };
99346
- const Table = ({ data: data2 }) => {
99349
+ const Table = ({ data: data2, currentTimeZone }) => {
99347
99350
  const { t: t2 } = useTranslation();
99348
99351
  return /* @__PURE__ */ React__default.createElement("div", {
99349
99352
  style: { width: "100%", margin: "auto" }
99350
99353
  }, /* @__PURE__ */ React__default.createElement("div", {
99351
99354
  style: { overflowX: "auto", display: "flex", flexDirection: "column", gap: 10, marginTop: 20 }
99352
99355
  }, data2.length && data2.length > 0 ? data2.map((table2, index2) => /* @__PURE__ */ React__default.createElement(TableRow, {
99356
+ currentTimeZone,
99353
99357
  row: table2,
99354
99358
  key: index2
99355
99359
  })) : /* @__PURE__ */ React__default.createElement("div", {
@@ -99367,6 +99371,7 @@ const HoursTableAvailability = ({ venueId, params, setParams, currentTimeZone, c
99367
99371
  currentTimeZone,
99368
99372
  currentDate
99369
99373
  }), /* @__PURE__ */ React__default.createElement(Table, {
99374
+ currentTimeZone,
99370
99375
  data: data2 != null ? data2 : []
99371
99376
  }));
99372
99377
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mozrest-sdk-react-dev",
3
- "version": "0.1.71",
3
+ "version": "0.1.72",
4
4
  "main": "mozrest-sdk.es.js",
5
5
  "keywords": ["mozrest"],
6
6
  "author": {