@yourself_id/siwys-react-js 0.0.27 → 0.0.28-update-download-links.0
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 +10 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1029,6 +1029,14 @@ var Box = import_styled_components5.default.div(_templateObject13(), function(pr
|
|
|
1029
1029
|
});
|
|
1030
1030
|
var DownloadApp = function(param) {
|
|
1031
1031
|
var ref = _object_destructuring_empty(param);
|
|
1032
|
+
var openIOSLink = function() {
|
|
1033
|
+
var url = "https://apps.apple.com/app/id.yourself.selfid";
|
|
1034
|
+
window.open(url, "_blank");
|
|
1035
|
+
};
|
|
1036
|
+
var openAndroidLink = function() {
|
|
1037
|
+
var url = "https://play.google.com/store/apps/details?id=prod.id.yourself.selfid";
|
|
1038
|
+
window.open(url, "_blank");
|
|
1039
|
+
};
|
|
1032
1040
|
return /* @__PURE__ */ import_react5.default.createElement(Wrapper2, null, /* @__PURE__ */ import_react5.default.createElement(Header2, null, /* @__PURE__ */ import_react5.default.createElement("h3", null, "Get", " ", /* @__PURE__ */ import_react5.default.createElement("span", {
|
|
1033
1041
|
style: {
|
|
1034
1042
|
color: "#D8EE4F"
|
|
@@ -1050,18 +1058,14 @@ var DownloadApp = function(param) {
|
|
|
1050
1058
|
})), /* @__PURE__ */ import_react5.default.createElement(AppleAppStore_default, {
|
|
1051
1059
|
width: "8rem",
|
|
1052
1060
|
height: "2.5rem",
|
|
1053
|
-
onClick:
|
|
1054
|
-
return console.log("TODO: Update with iOS App URL");
|
|
1055
|
-
},
|
|
1061
|
+
onClick: openIOSLink,
|
|
1056
1062
|
style: {
|
|
1057
1063
|
cursor: "pointer"
|
|
1058
1064
|
}
|
|
1059
1065
|
}), /* @__PURE__ */ import_react5.default.createElement(GooglePlayStore_default, {
|
|
1060
1066
|
width: "8rem",
|
|
1061
1067
|
height: "2.5rem",
|
|
1062
|
-
onClick:
|
|
1063
|
-
return console.log("TODO: Update with Google Play URL");
|
|
1064
|
-
},
|
|
1068
|
+
onClick: openAndroidLink,
|
|
1065
1069
|
style: {
|
|
1066
1070
|
cursor: "pointer"
|
|
1067
1071
|
}
|