mozrest-sdk-react-dev 0.1.48 → 0.1.49
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/mozrest-sdk.es.js +16 -10
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -56085,11 +56085,12 @@ const CardLinks = ({ onClickEdit, values }) => {
|
|
|
56085
56085
|
text: values.urlWebsite
|
|
56086
56086
|
})), (_a2 = values.attributesLinks) == null ? void 0 : _a2.map(({ displayName, value: value2 }, key2) => /* @__PURE__ */ React__default.createElement("a", {
|
|
56087
56087
|
href: value2,
|
|
56088
|
+
key: `a-${key2}`,
|
|
56088
56089
|
target: "_blank",
|
|
56089
56090
|
className: styles$17.link
|
|
56090
56091
|
}, /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
56091
56092
|
label: displayName,
|
|
56092
|
-
key: key2
|
|
56093
|
+
key: `item-${key2}`,
|
|
56093
56094
|
text: value2
|
|
56094
56095
|
})))), (values.urlFacebook || values.urlTwitter) && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
56095
56096
|
style: { borderBottom: "1px solid black", margin: "1rem 0" }
|
|
@@ -94881,14 +94882,8 @@ const singleVenue = async () => {
|
|
|
94881
94882
|
}
|
|
94882
94883
|
});
|
|
94883
94884
|
};
|
|
94884
|
-
const
|
|
94885
|
-
useTranslation();
|
|
94886
|
-
const navigate = useNavigate();
|
|
94887
|
-
const { data: data2, isLoading, error: error3 } = useFetch(GetVenueListingSummary, {
|
|
94888
|
-
cacheId: "sumary"
|
|
94889
|
-
});
|
|
94885
|
+
const redirectToVenueListing = async (data2, navigate) => {
|
|
94890
94886
|
if ((data2 == null ? void 0 : data2.total) === 1) {
|
|
94891
|
-
console.log("single");
|
|
94892
94887
|
singleVenue().then((response) => {
|
|
94893
94888
|
navigate(`/venues/${response == null ? void 0 : response.data[0].id}?singleVenue=true`);
|
|
94894
94889
|
return;
|
|
@@ -94902,8 +94897,20 @@ const Summary = () => {
|
|
|
94902
94897
|
});
|
|
94903
94898
|
} else {
|
|
94904
94899
|
navigate(`/venues/${lastVenueManaged}?singleVenue=false`);
|
|
94900
|
+
return;
|
|
94905
94901
|
}
|
|
94906
94902
|
};
|
|
94903
|
+
const Summary = () => {
|
|
94904
|
+
const navigate = useNavigate();
|
|
94905
|
+
const { data: data2, isLoading, error: error3 } = useFetch(GetVenueListingSummary, {
|
|
94906
|
+
cacheId: "sumary"
|
|
94907
|
+
});
|
|
94908
|
+
useEffect(() => {
|
|
94909
|
+
if (data2) {
|
|
94910
|
+
redirectToVenueListing(data2, navigate);
|
|
94911
|
+
}
|
|
94912
|
+
}, [data2]);
|
|
94913
|
+
};
|
|
94907
94914
|
const GetVenuesSummary = async ({
|
|
94908
94915
|
filters: filters2,
|
|
94909
94916
|
page = 1,
|
|
@@ -97334,8 +97341,7 @@ const ContactDetailsFormFields = (props) => {
|
|
|
97334
97341
|
}, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
97335
97342
|
style: { width: "90%" },
|
|
97336
97343
|
id: "telephone",
|
|
97337
|
-
label: t2("PHONENUMBER")
|
|
97338
|
-
placeholder: "+1234567890"
|
|
97344
|
+
label: t2("PHONENUMBER")
|
|
97339
97345
|
})), /* @__PURE__ */ React__default.createElement(Col$1, {
|
|
97340
97346
|
xs: 24,
|
|
97341
97347
|
lg: 10
|