@pushwoosh/dumb-components 2.9.5 → 2.9.6

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.
@@ -18,7 +18,7 @@ export const CalendarRangePicker = ({
18
18
  firstDayOfWeek,
19
19
  initialVisibleMonth
20
20
  }) => {
21
- const startMonthRef = useRef();
21
+ const startMonthRef = useRef(undefined);
22
22
  if (!startMonthRef.current) {
23
23
  const d = new Date();
24
24
  startMonthRef.current = initialVisibleMonth ?? value[0] ?? {
@@ -28,7 +28,7 @@ export function Drawer({
28
28
  withoutLockScreen = false,
29
29
  closeOnClickOutside = true
30
30
  }) {
31
- const ref = useRef();
31
+ const ref = useRef(undefined);
32
32
  const [element] = useState(createDivElement);
33
33
  const {
34
34
  zIndex: resolvedZIndex
@@ -26,7 +26,7 @@ export function Modal(props) {
26
26
  onClose,
27
27
  children
28
28
  } = props;
29
- const ref = useRef();
29
+ const ref = useRef(undefined);
30
30
  const [element] = useState(createDivElement);
31
31
  const {
32
32
  zIndex: resolvedZIndex
@@ -155,7 +155,9 @@ export function NotificationInbox({
155
155
  children: notification.title
156
156
  }), notification.description && _jsx(NotificationDescription, {
157
157
  as: "div",
158
- ref: element => descriptionRefs.current[notification.id] = element || null,
158
+ ref: element => {
159
+ descriptionRefs.current[notification.id] = element || null;
160
+ },
159
161
  "$variant": "standard",
160
162
  "$color": Color.MAIN,
161
163
  "$visibleLines": VISIBLE_LINES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "2.9.5",
3
+ "version": "2.9.6",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",