iticket-seatingplan-dev 1.0.18 → 1.0.20

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.
@@ -29,6 +29,7 @@ const SeatingPlan = _ref => {
29
29
  baseUrl,
30
30
  countryCode
31
31
  } = _ref;
32
+ const [map, setMap] = (0, _react.useState)();
32
33
  const [position, setPosition] = (0, _react.useState)(null);
33
34
  const [height, setHeight] = (0, _react.useState)(0);
34
35
  const [width, setWidth] = (0, _react.useState)(0);
@@ -54,6 +55,7 @@ const SeatingPlan = _ref => {
54
55
  };
55
56
  };
56
57
  const addTicketToCart = (s, priceAgeId) => {
58
+ map.target.closePopup();
57
59
  setProcessing(true);
58
60
  fetch("".concat(baseUrl, "/legacy/").concat(countryCode, "/shop/events/").concat(eventId, "/").concat(eventVenueId, "/showings/").concat(showingId, "/tickets/allocated/").concat(areaId), {
59
61
  method: 'POST',
@@ -220,6 +222,7 @@ const SeatingPlan = _ref => {
220
222
  }, error ? /*#__PURE__*/_react.default.createElement("div", {
221
223
  className: "loading"
222
224
  }, /*#__PURE__*/_react.default.createElement("h1", null, "OOPS!"), /*#__PURE__*/_react.default.createElement("div", null, error.response.data.message)) : position ? /*#__PURE__*/_react.default.createElement(_reactLeaflet.MapContainer, {
225
+ whenReady: setMap,
223
226
  center: position,
224
227
  zoom: 5,
225
228
  scrollWheelZoom: true,
@@ -445,6 +445,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
445
445
  /* attribution and scale controls */
446
446
 
447
447
  .leaflet-container .leaflet-control-attribution {
448
+ display: none;
448
449
  background: #fff;
449
450
  background: rgba(255, 255, 255, 0.8);
450
451
  margin: 0;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "iticket-seatingplan-dev",
3
3
  "description": "Seating plan with FLEXi pricing",
4
4
  "author": "gedwyne",
5
- "version": "1.0.18",
5
+ "version": "1.0.20",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "iticket",