beem-component 1.6.6 → 1.6.7
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.
|
@@ -81,16 +81,20 @@ var BmProfileIcon = function BmProfileIcon(_ref) {
|
|
|
81
81
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Profile, _extends({
|
|
82
82
|
size: size
|
|
83
83
|
}, rest), content && !img && /*#__PURE__*/_react.default.createElement(Content, null, content), img && !content && /*#__PURE__*/_react.default.createElement(ProfileImg, {
|
|
84
|
-
src: img
|
|
84
|
+
src: img,
|
|
85
|
+
alt: "profileicon"
|
|
85
86
|
}), channel && channel === 'whatsapp' && /*#__PURE__*/_react.default.createElement(Dot, {
|
|
86
87
|
size: size,
|
|
87
|
-
src: _wa.default
|
|
88
|
+
src: _wa.default,
|
|
89
|
+
alt: "icon"
|
|
88
90
|
}), channel && channel === 'facebook' && /*#__PURE__*/_react.default.createElement(Dot, {
|
|
89
91
|
size: size,
|
|
90
|
-
src: _fb.default
|
|
92
|
+
src: _fb.default,
|
|
93
|
+
alt: "icon"
|
|
91
94
|
}), channel && channel === 'instagram' && /*#__PURE__*/_react.default.createElement(Dot, {
|
|
92
95
|
size: size,
|
|
93
|
-
src: _insta.default
|
|
96
|
+
src: _insta.default,
|
|
97
|
+
alt: "icon"
|
|
94
98
|
})));
|
|
95
99
|
};
|
|
96
100
|
|
package/package.json
CHANGED
|
@@ -66,10 +66,16 @@ export const BmProfileIcon = ({ img, content, channel, size, ...rest }) => {
|
|
|
66
66
|
<>
|
|
67
67
|
<Profile size={size} {...rest}>
|
|
68
68
|
{content && !img && <Content>{content}</Content>}
|
|
69
|
-
{img && !content && <ProfileImg src={img} />}
|
|
70
|
-
{channel && channel === 'whatsapp' &&
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
{img && !content && <ProfileImg src={img} alt="profileicon" />}
|
|
70
|
+
{channel && channel === 'whatsapp' && (
|
|
71
|
+
<Dot size={size} src={wa} alt="icon" />
|
|
72
|
+
)}
|
|
73
|
+
{channel && channel === 'facebook' && (
|
|
74
|
+
<Dot size={size} src={fb} alt="icon" />
|
|
75
|
+
)}
|
|
76
|
+
{channel && channel === 'instagram' && (
|
|
77
|
+
<Dot size={size} src={insta} alt="icon" />
|
|
78
|
+
)}
|
|
73
79
|
</Profile>
|
|
74
80
|
</>
|
|
75
81
|
);
|