social-logos 3.1.8 → 3.1.9
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/CHANGELOG.md +5 -0
- package/build/react/example.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [3.1.9] - 2024-10-14
|
|
2
|
+
### Fixed
|
|
3
|
+
- Add `key` in React example to make it more correct. [#39709]
|
|
4
|
+
|
|
1
5
|
## [3.1.8] - 2024-09-05
|
|
2
6
|
### Fixed
|
|
3
7
|
- Address React usage issues found by eslint in example.tsx. [#39214]
|
|
@@ -153,6 +157,7 @@
|
|
|
153
157
|
|
|
154
158
|
- Build: Refactored (aligned build system with Gridicons).
|
|
155
159
|
|
|
160
|
+
[3.1.9]: https://github.com/Automattic/social-logos/compare/v3.1.8...v3.1.9
|
|
156
161
|
[3.1.8]: https://github.com/Automattic/social-logos/compare/v3.1.7...v3.1.8
|
|
157
162
|
[3.1.7]: https://github.com/Automattic/social-logos/compare/v3.1.6...v3.1.7
|
|
158
163
|
[3.1.6]: https://github.com/Automattic/social-logos/compare/v3.1.5...v3.1.6
|
package/build/react/example.js
CHANGED
|
@@ -37,7 +37,7 @@ function SocialLogosExample() {
|
|
|
37
37
|
const handleIconNamesToggle = (0, react_1.useCallback)(e => {
|
|
38
38
|
setShowIconNames(e.target.checked);
|
|
39
39
|
}, [setShowIconNames]);
|
|
40
|
-
const allSocialLogos = social_logo_data_1.SocialLogoData.map(logo => ((0, jsx_runtime_1.jsx)(SocialLogoItemExample, { name: logo.name, iconSize: iconSize, showIconNames: showIconNames })));
|
|
40
|
+
const allSocialLogos = social_logo_data_1.SocialLogoData.map(logo => ((0, jsx_runtime_1.jsx)(SocialLogoItemExample, { name: logo.name, iconSize: iconSize, showIconNames: showIconNames }, logo.name)));
|
|
41
41
|
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "social-logos-example" }, { children: [(0, jsx_runtime_1.jsx)("h1", { children: "Social Logos" }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "display-control-group" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "display-control" }, { children: [(0, jsx_runtime_1.jsx)("h4", { children: "Small icons" }), (0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "switch" }, { children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", onChange: handleSmallIconsToggle, checked: useSmallIcons }), (0, jsx_runtime_1.jsx)("span", { className: "handle" })] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "display-control" }, { children: [(0, jsx_runtime_1.jsx)("h4", { children: "Icon names" }), (0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "switch" }, { children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", onChange: handleIconNamesToggle, checked: showIconNames }), (0, jsx_runtime_1.jsx)("span", { className: "handle" }), (0, jsx_runtime_1.jsx)("span", { className: "switch-label", "data-on": "On", "data-off": "Off" })] }))] }))] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "icons" }, { children: allSocialLogos })), (0, jsx_runtime_1.jsx)("p", { children: (0, jsx_runtime_1.jsx)("a", Object.assign({ href: "https://github.com/Automattic/social-logos" }, { children: "GitHub" })) })] })));
|
|
42
42
|
}
|
|
43
43
|
exports.default = SocialLogosExample;
|
package/package.json
CHANGED