tf-checkout-react 1.2.26 → 1.2.27
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/dist/tf-checkout-react.cjs.development.js +17 -1
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +17 -1
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/common/dist/PhoneNumberField.js +96 -0
- package/src/components/ticketsContainer/index.tsx +45 -30
|
@@ -5273,6 +5273,10 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
5273
5273
|
showPromoCodeSection = _useState14[0],
|
|
5274
5274
|
setShowPromoCodeSection = _useState14[1];
|
|
5275
5275
|
|
|
5276
|
+
var _useState15 = useState(null),
|
|
5277
|
+
error = _useState15[0],
|
|
5278
|
+
setError = _useState15[1];
|
|
5279
|
+
|
|
5276
5280
|
var ticketsContainerRef = useRef(null);
|
|
5277
5281
|
useEffect(function () {
|
|
5278
5282
|
if (typeof window !== 'undefined') {
|
|
@@ -5441,6 +5445,10 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
5441
5445
|
}
|
|
5442
5446
|
};
|
|
5443
5447
|
|
|
5448
|
+
var onErrorClose = function onErrorClose() {
|
|
5449
|
+
setError(null);
|
|
5450
|
+
};
|
|
5451
|
+
|
|
5444
5452
|
var handleBook = /*#__PURE__*/function () {
|
|
5445
5453
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2() {
|
|
5446
5454
|
var _product_options, _product_options2, _ticket_types;
|
|
@@ -5542,6 +5550,7 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
5542
5550
|
|
|
5543
5551
|
if (axios.isAxiosError(_context2.t1)) {
|
|
5544
5552
|
onAddToCartError(_context2.t1);
|
|
5553
|
+
setError(_get(_context2.t1, 'response.data.message'));
|
|
5545
5554
|
}
|
|
5546
5555
|
|
|
5547
5556
|
case 38:
|
|
@@ -5616,7 +5625,14 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
5616
5625
|
}), React.createElement("div", {
|
|
5617
5626
|
className: "get-tickets-page " + theme,
|
|
5618
5627
|
style: contentStyle
|
|
5619
|
-
},
|
|
5628
|
+
}, error && React.createElement(Alert$1, {
|
|
5629
|
+
severity: "error",
|
|
5630
|
+
onClose: onErrorClose,
|
|
5631
|
+
variant: "filled",
|
|
5632
|
+
style: {
|
|
5633
|
+
width: '350px'
|
|
5634
|
+
}
|
|
5635
|
+
}, error), isLoading ? React.createElement(Loader, null) : React.createElement("div", {
|
|
5620
5636
|
ref: ticketsContainerRef
|
|
5621
5637
|
}, !isSalesClosed && React.createElement(TicketsSection, {
|
|
5622
5638
|
ticketsList: tickets,
|