react-social-icons
Advanced tools
Comparing version 5.12.0 to 5.13.0
@@ -16,6 +16,2 @@ "use strict"; | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
@@ -25,13 +21,10 @@ | ||
// eslint-disable-next-line react/prop-types | ||
function Background(_ref) { | ||
var networkKey = _ref.networkKey, | ||
fgColor = _ref.fgColor, | ||
props = _objectWithoutProperties(_ref, ["networkKey", "fgColor"]); | ||
props = _objectWithoutProperties(_ref, ["networkKey"]); | ||
// eslint-disable-line react/prop-types | ||
return _react.default.createElement("g", _extends({}, props, { | ||
className: "social-svg-background", | ||
style: _objectSpread({}, _styles.socialSvgContent, { | ||
fill: fgColor || _styles.socialSvgContent.fill | ||
}) | ||
style: _styles.socialSvgContent | ||
}), _react.default.createElement("circle", { | ||
@@ -38,0 +31,0 @@ cx: "32", |
@@ -72,5 +72,3 @@ "use strict"; | ||
viewBox: "0 0 64 64" | ||
}, _react.default.createElement(_background.default, { | ||
fgColor: fgColor | ||
}), _react.default.createElement(_icon.default, { | ||
}, _react.default.createElement(_background.default, null), _react.default.createElement(_icon.default, { | ||
networkKey: networkKey, | ||
@@ -77,0 +75,0 @@ fgColor: fgColor |
{ | ||
"name": "react-social-icons", | ||
"version": "5.12.0", | ||
"version": "5.13.0", | ||
"description": "beautiful, easy svg social icons in react", | ||
@@ -5,0 +5,0 @@ "main": "./build/react-social-icons.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
124538
976