@cashub/ui 0.35.1 → 0.35.2

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.
Files changed (2) hide show
  1. package/map/GoogleMap.js +4 -1
  2. package/package.json +1 -1
package/map/GoogleMap.js CHANGED
@@ -410,7 +410,10 @@ const Map = _ref2 => {
410
410
  messageContainer.style.backgroundColor = 'rgb(255, 255, 255)';
411
411
  messageContainer.style.fontSize = 'var(--font-body1)';
412
412
  messageContainer.textContent = message;
413
- map.controls[window.google.maps.ControlPosition.CENTER].push(messageContainer);
413
+ const index = map.controls[window.google.maps.ControlPosition.CENTER].push(messageContainer);
414
+ return () => {
415
+ map.controls[window.google.maps.ControlPosition.CENTER].removeAt(index - 1);
416
+ };
414
417
  }
415
418
  }, [map, message]);
416
419
  (0, _react.useEffect)(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.35.1",
3
+ "version": "0.35.2",
4
4
  "private": false,
5
5
  "author": "CasHUB Team",
6
6
  "description": "CasHUB UI components library",