authscape 1.0.141 → 1.0.142
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.js
CHANGED
|
@@ -717,7 +717,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
717
717
|
Object.defineProperty(exports, "__esModule", {
|
|
718
718
|
value: true
|
|
719
719
|
});
|
|
720
|
-
exports
|
|
720
|
+
exports.GooglePlacesModal = void 0;
|
|
721
721
|
var _react = _interopRequireWildcard(require("react"));
|
|
722
722
|
var _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
723
723
|
var _system = require("@mui/system");
|
|
@@ -994,7 +994,7 @@ var AutoCompleteDialog = function AutoCompleteDialog(_ref) {
|
|
|
994
994
|
}
|
|
995
995
|
}, renderSuggestions()));
|
|
996
996
|
};
|
|
997
|
-
function GooglePlacesModal(_ref3) {
|
|
997
|
+
var GooglePlacesModal = function GooglePlacesModal(_ref3) {
|
|
998
998
|
var onSave = _ref3.onSave,
|
|
999
999
|
_ref3$createButtonTex = _ref3.createButtonText,
|
|
1000
1000
|
createButtonText = _ref3$createButtonTex === void 0 ? "Save" : _ref3$createButtonTex;
|
|
@@ -1104,7 +1104,8 @@ function GooglePlacesModal(_ref3) {
|
|
|
1104
1104
|
}, createButtonText))), /*#__PURE__*/_react["default"].createElement(_script["default"], {
|
|
1105
1105
|
src: "https://maps.googleapis.com/maps/api/js?key=" + process.env.googleMapsKey + "&libraries=places"
|
|
1106
1106
|
}));
|
|
1107
|
-
}
|
|
1107
|
+
};
|
|
1108
|
+
exports.GooglePlacesModal = GooglePlacesModal;
|
|
1108
1109
|
"use strict";
|
|
1109
1110
|
|
|
1110
1111
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
package/package.json
CHANGED
|
@@ -333,10 +333,10 @@ const AutoCompleteDialog = ({placeholder, onSelected, defaultValue, onChange}) =
|
|
|
333
333
|
);
|
|
334
334
|
};
|
|
335
335
|
|
|
336
|
-
export
|
|
336
|
+
export const GooglePlacesModal = ({
|
|
337
337
|
onSave,
|
|
338
338
|
createButtonText = "Save"
|
|
339
|
-
}) {
|
|
339
|
+
}) => {
|
|
340
340
|
const [address, setAddress] = useState("");
|
|
341
341
|
const [city, setCity] = useState("");
|
|
342
342
|
const [state, setState] = useState("");
|