@datlv-trustshop/shopify-inapp-components 0.2.2 → 0.2.3
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.
|
@@ -51,7 +51,7 @@ export const GrowApps = ({ className = "", onAppClick, onDismiss, dismissKey = D
|
|
|
51
51
|
}
|
|
52
52
|
}, [dismissKey, dismissDuration]);
|
|
53
53
|
const handleGetAppClick = (app) => {
|
|
54
|
-
const url = app.app_url || app.get_app || "#";
|
|
54
|
+
const url = app.button_install_link || app.app_url || app.get_app || "#";
|
|
55
55
|
if (url && url !== "#") {
|
|
56
56
|
window.open(url, "_blank");
|
|
57
57
|
}
|
|
@@ -190,7 +190,8 @@ export const GrowApps = ({ className = "", onAppClick, onDismiss, dismissKey = D
|
|
|
190
190
|
transform: "translateX(0px)",
|
|
191
191
|
}, children: growApps.map((app, index) => {
|
|
192
192
|
const iconUrl = app.icon_url || app.imageUrl || "";
|
|
193
|
-
const buttonText = app.
|
|
193
|
+
const buttonText = app.button_install_text ||
|
|
194
|
+
app.button_text ||
|
|
194
195
|
app.button_get_app ||
|
|
195
196
|
growAppsTranslations?.install ||
|
|
196
197
|
"Get app";
|