ublo-lib 1.10.10 → 1.10.11

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.
@@ -14,8 +14,12 @@ const DateDisplay = ({
14
14
  const [stay, setStay] = React.useState();
15
15
  const {
16
16
  lang,
17
- metadata
17
+ metadata,
18
+ config
18
19
  } = useUbloContext();
20
+ const {
21
+ extend
22
+ } = config.season;
19
23
  const classes = classnames(css.display, {
20
24
  [className]: className
21
25
  });
@@ -38,7 +42,7 @@ const DateDisplay = ({
38
42
  };
39
43
  }
40
44
  }, [getStoredStay, metadata?.disableWeekpicker, updateStay]);
41
- if (!stay || metadata?.disableWeekpicker) return null;
45
+ if (!extend || !stay || metadata?.disableWeekpicker) return null;
42
46
  const formatedStay = Stay.formatStay(lang, stay);
43
47
  return _jsxs("div", {
44
48
  className: classes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.10.10",
3
+ "version": "1.10.11",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^2.1.0",
6
6
  "leaflet": "^1.9.1",