@trackunit/react-date-and-time-components 0.0.148 → 0.0.152
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/index.cjs.js +1 -4
- package/index.esm.js +1 -4
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -232,13 +232,10 @@ const QuickOptionButton = ({ option, onClick, timezone }) => {
|
|
|
232
232
|
const translatedUnits = (unit) => {
|
|
233
233
|
switch (unit) {
|
|
234
234
|
case "hours":
|
|
235
|
-
return "shared.timePeriods.hours";
|
|
236
235
|
case "days":
|
|
237
|
-
return "shared.timePeriods.days";
|
|
238
236
|
case "months":
|
|
239
|
-
return "shared.timePeriods.months";
|
|
240
237
|
case "weeks":
|
|
241
|
-
return
|
|
238
|
+
return `shared.timePeriods.${unit}`;
|
|
242
239
|
default:
|
|
243
240
|
return null;
|
|
244
241
|
}
|
package/index.esm.js
CHANGED
|
@@ -230,13 +230,10 @@ const QuickOptionButton = ({ option, onClick, timezone }) => {
|
|
|
230
230
|
const translatedUnits = (unit) => {
|
|
231
231
|
switch (unit) {
|
|
232
232
|
case "hours":
|
|
233
|
-
return "shared.timePeriods.hours";
|
|
234
233
|
case "days":
|
|
235
|
-
return "shared.timePeriods.days";
|
|
236
234
|
case "months":
|
|
237
|
-
return "shared.timePeriods.months";
|
|
238
235
|
case "weeks":
|
|
239
|
-
return
|
|
236
|
+
return `shared.timePeriods.${unit}`;
|
|
240
237
|
default:
|
|
241
238
|
return null;
|
|
242
239
|
}
|