@lookiero/checkout 0.6.0-beta.21 → 0.6.0-beta.23
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useCallback } from "react";
|
|
2
2
|
import { Platform } from "react-native";
|
|
3
3
|
import { useRoutes as reactRouterUseRoutes } from "react-router-native";
|
|
4
4
|
import { sentryLogger } from "../../shared/logging/SentryLogger";
|
|
@@ -10,6 +10,6 @@ const root = ({ Messaging, I18n, getAuthToken, development, sentry }) => {
|
|
|
10
10
|
return (React.createElement(Messaging, { includeReactQueryDevTools: Platform.OS === "web" },
|
|
11
11
|
React.createElement(Routing, { I18n: I18n, basePath: basePath, customer: customer, getAuthToken: getAuthToken, locale: locale, menu: menu, tabBar: tabBar, useRedirect: useRedirect, useRoutes: useRoutes, onI18nError: development ? undefined : handleOnI18nError, onNotAccessible: onNotAccessible })));
|
|
12
12
|
};
|
|
13
|
-
return
|
|
13
|
+
return sentryLogger(sentry)(Root);
|
|
14
14
|
};
|
|
15
15
|
export { root };
|
|
@@ -11,7 +11,7 @@ const CheckoutAccessibilityMiddleware = ({ customerId, onNotAccessible, loader =
|
|
|
11
11
|
if (notAccessible) {
|
|
12
12
|
onNotAccessibleRef.current();
|
|
13
13
|
}
|
|
14
|
-
}, [notAccessible
|
|
14
|
+
}, [notAccessible]);
|
|
15
15
|
return accessible === undefined && [QueryStatus.IDLE, QueryStatus.LOADING].includes(status)
|
|
16
16
|
? loader
|
|
17
17
|
: accessible
|
|
@@ -88,9 +88,9 @@ const sentryLogger = ({ publicKey, environment, release, project }) => {
|
|
|
88
88
|
hub.endSession();
|
|
89
89
|
makeMain(mainHub);
|
|
90
90
|
};
|
|
91
|
+
const useRoutes = wrapUseRoutes(reactRouterUseRoutes);
|
|
91
92
|
return (Component) => {
|
|
92
93
|
const WrappedComponent = wrap(Component);
|
|
93
|
-
const useRoutes = wrapUseRoutes(reactRouterUseRoutes);
|
|
94
94
|
const SentryLogger = (props) => {
|
|
95
95
|
const { customer } = props;
|
|
96
96
|
useEffect(() => {
|