@wlloyalty/wll-react-sdk 1.0.34 → 1.0.35
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/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19011,15 +19011,15 @@ var useHandleTilePress = function (tile, ctaLink, ctaLinkTarget) {
|
|
|
19011
19011
|
if ((tile === null || tile === void 0 ? void 0 : tile.type) === exports.TileType.Reward) {
|
|
19012
19012
|
var config = tile.configuration;
|
|
19013
19013
|
if (config === null || config === void 0 ? void 0 : config.rewardId) {
|
|
19014
|
-
var
|
|
19015
|
-
return handleNavigation(
|
|
19014
|
+
var url = "/reward?id=".concat(config.rewardId);
|
|
19015
|
+
return handleNavigation(url, exports.CTALinkTarget.sameWindow);
|
|
19016
19016
|
}
|
|
19017
19017
|
}
|
|
19018
19018
|
if ((tile === null || tile === void 0 ? void 0 : tile.type) === exports.TileType.RewardCategory) {
|
|
19019
19019
|
var config = tile.configuration;
|
|
19020
|
+
var url = "/category?id=".concat(config.rewardCategoryId);
|
|
19020
19021
|
if (config === null || config === void 0 ? void 0 : config.rewardCategoryId) {
|
|
19021
|
-
|
|
19022
|
-
return handleNavigation(link, exports.CTALinkTarget.sameWindow);
|
|
19022
|
+
return handleNavigation(url, exports.CTALinkTarget.sameWindow);
|
|
19023
19023
|
}
|
|
19024
19024
|
}
|
|
19025
19025
|
if (ctaLink) {
|