@trackunit/react-date-and-time-components 0.0.148 → 0.0.151

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 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 "shared.timePeriods.weeks";
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 "shared.timePeriods.weeks";
236
+ return `shared.timePeriods.${unit}`;
240
237
  default:
241
238
  return null;
242
239
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-date-and-time-components",
3
- "version": "0.0.148",
3
+ "version": "0.0.151",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {