mozrest-sdk-react-dev 0.2.48 → 0.2.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 +12 -0
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -101256,6 +101256,7 @@ const ChangePassword = async ({
|
|
|
101256
101256
|
};
|
|
101257
101257
|
const ChannelsDashboard = ({ venueListingId, venueId }) => {
|
|
101258
101258
|
const { t: t2 } = useTranslation();
|
|
101259
|
+
useParams();
|
|
101259
101260
|
const navigate = useNavigate();
|
|
101260
101261
|
const { data: connectedChannelsData, isLoading: connectedChannelsLoading, error: connectedChannelsError } = useFetch(GetConnectedBookingChannels$1, {
|
|
101261
101262
|
cacheId: "connected-booking-channels"
|
|
@@ -101289,6 +101290,17 @@ const ChannelsDashboard = ({ venueListingId, venueId }) => {
|
|
|
101289
101290
|
const onNavigateToChannelDetail = (data2) => {
|
|
101290
101291
|
navigate(`/channels/${data2.id}`, { state: { bookingChannel: data2 } });
|
|
101291
101292
|
};
|
|
101293
|
+
useEffect(() => {
|
|
101294
|
+
const path2 = window.location.pathname;
|
|
101295
|
+
const regex = /^\/reservations\/channel-management\/([\w-]+)\/subscribe$/;
|
|
101296
|
+
const match5 = path2.match(regex);
|
|
101297
|
+
if (match5) {
|
|
101298
|
+
const id2 = match5[1];
|
|
101299
|
+
navigate(`/channel/${id2}/subscribe`, {
|
|
101300
|
+
state: { bookingChannel: { id: id2 } }
|
|
101301
|
+
});
|
|
101302
|
+
}
|
|
101303
|
+
}, [navigate]);
|
|
101292
101304
|
if (connectedChannelsError || channelsError) {
|
|
101293
101305
|
return /* @__PURE__ */ React__default.createElement(Error$1, {
|
|
101294
101306
|
error: connectedChannelsError != null ? connectedChannelsError : channelsError
|