@mychoice/mychoice-sdk-modules 2.1.16 → 2.1.17
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/cjs/index.js +5 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +6 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -254,7 +254,11 @@ jsxRuntime.jsx("video", { src: "https://mychoice.ca/wp-content/uploads/2023/05/P
|
|
|
254
254
|
|
|
255
255
|
const LoaderPrimary = () => {
|
|
256
256
|
const { appLoaderState } = mychoiceSdkStore.useStoreAppLoader();
|
|
257
|
-
|
|
257
|
+
const { appConfigState } = mychoiceSdkStore.useStoreAppConfig();
|
|
258
|
+
console.log(window.location.pathname);
|
|
259
|
+
const isLastPage = window.location.pathname.includes('discount') || window.location.pathname.includes('applicant');
|
|
260
|
+
console.log(isLastPage);
|
|
261
|
+
return (jsxRuntime.jsxs("div", { className: "loader-wrapper", children: [appConfigState.appType === mychoiceSdkComponents.AppTypes.TheBig || !isLastPage ? jsxRuntime.jsx(mychoiceSdkComponents.IconLoaderPrimary, {}) : jsxRuntime.jsx(LoaderVid, {}), !!appLoaderState.description && (jsxRuntime.jsx("h4", { children: appLoaderState.description.split('\n').map((line, index) => (jsxRuntime.jsxs("div", { children: [line, jsxRuntime.jsx("br", {})] }, index))) }))] }));
|
|
258
262
|
};
|
|
259
263
|
|
|
260
264
|
const ModalConfirm = () => {
|