mozrest-sdk-react-dev 0.1.57 → 0.1.58
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 +3 -3
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -96113,9 +96113,9 @@ const formatSeating = (data2) => {
|
|
|
96113
96113
|
});
|
|
96114
96114
|
};
|
|
96115
96115
|
const TimeFormatter = ({ seconds: seconds2, type: type4 = "hours" }) => {
|
|
96116
|
-
const days2 =
|
|
96117
|
-
const hours2 =
|
|
96118
|
-
const minutes2 =
|
|
96116
|
+
const days2 = Math.floor(seconds2 / (60 * 60 * 24));
|
|
96117
|
+
const hours2 = Math.floor(seconds2 % (60 * 60 * 24) / (60 * 60));
|
|
96118
|
+
const minutes2 = Math.floor(seconds2 % (60 * 60) / 60);
|
|
96119
96119
|
return /* @__PURE__ */ React__default.createElement("span", null, `
|
|
96120
96120
|
${days2 && days2 !== 0 ? days2 + "d" : ""}
|
|
96121
96121
|
${hours2 && hours2 !== 0 ? hours2 + "h" : ""}
|