react-gldn-kit 0.1.150 → 0.1.152
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.
|
@@ -44,6 +44,9 @@ var shared_1 = require("utils/shared");
|
|
|
44
44
|
var styles = __importStar(require("./SocialMediaButton.module.css"));
|
|
45
45
|
var SocialMediaButton = function (props) {
|
|
46
46
|
var link = props.link, classes = props.classes, Icon = props.Icon;
|
|
47
|
+
if (!link) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
47
50
|
var openLink = function () {
|
|
48
51
|
(0, shared_1.openExternalLink)(link, true);
|
|
49
52
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-gldn-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.152",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"keywords": [],
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build:types": "rm -rf ./dist/lib && tsc --build tsconfig.json",
|
|
11
11
|
"dev": "npm run build:types && webpack --watch",
|
|
12
|
-
"build": "rm -rf dist && npm run build:types && webpack --mode=production --node-env=production",
|
|
12
|
+
"build": "rm -rf dist && npm run add:react && npm run build:types && webpack --mode=production --node-env=production",
|
|
13
13
|
"publish": "npm i && npm run build && npm publish",
|
|
14
14
|
"clear": "sudo rm -rf node_modules && npm i",
|
|
15
|
-
"add:react": "npm link
|
|
15
|
+
"add:react": "npm link ../../betendy-tech/betendy-tech/node_modules/react ../../betendy-tech/betendy-tech/node_modules/@types/react ../../betendy-tech/betendy-tech/node_modules/classnames ../../betendy-tech/betendy-tech/node_modules/react-dom ../../betendy-tech/betendy-tech/node_modules/@types/react-dom ../../betendy-tech/betendy-tech/node_modules/react-memory-optimization",
|
|
16
16
|
"add:react:second": "npm link ../elon-tech/node_modules/react ../elon-tech/node_modules/@types/react ../elon-tech/node_modules/classnames ../elon-tech/node_modules/react-dom ../elon-tech/node_modules/@types/react-dom ../elon-tech/node_modules/react-responsive-carousel ../elon-tech/node_modules/react-easy-swipe ../elon-tech/node_modules/react-memory-optimization",
|
|
17
17
|
"add:react:third": "npm link ../betendy-tech/node_modules/react ../betendy-tech/node_modules/@types/react ../betendy-tech/node_modules/classnames ../betendy-tech/node_modules/react-dom ../betendy-tech/node_modules/@types/react-dom ../betendy-tech/node_modules/react-memory-optimization",
|
|
18
18
|
"add:react-l-b": "npm link ../landings/node_modules/react ../landings/node_modules/@types/react ../landings/node_modules/classnames ../landings/node_modules/react-dom ../landings/node_modules/@types/react-dom ../landings/node_modules/react-memory-optimization",
|