Skip to content

Commit

Permalink
feat: add XIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
nygardk committed Nov 18, 2023
1 parent 01c82b3 commit 18f2de2
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-wolves-move.md
@@ -0,0 +1,5 @@
---
"react-share": minor
---

Added `XIcon`.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -185,7 +185,8 @@ import {
VKIcon,
WeiboIcon,
WhatsappIcon,
WorkplaceIcon
WorkplaceIcon,
XIcon
} from "react-share";
```

Expand Down
4 changes: 2 additions & 2 deletions demo/Demo.tsx
Expand Up @@ -32,7 +32,7 @@ import {
InstapaperShareButton,
HatenaShareButton,
FacebookIcon,
TwitterIcon,
XIcon,
LinkedinIcon,
PinterestIcon,
VKIcon,
Expand Down Expand Up @@ -95,7 +95,7 @@ class Demo extends Component {
title={title}
className="Demo__some-network__share-button"
>
<TwitterIcon size={32} round />
<XIcon size={32} round />
</TwitterShareButton>

<div className="Demo__some-network__share-count">&nbsp;</div>
Expand Down
9 changes: 9 additions & 0 deletions src/XIcon.ts
@@ -0,0 +1,9 @@
import createIcon from './hocs/createIcon';

const XIcon = createIcon({
color: '#000000',
networkName: 'X',
path: 'M 41.116 18.375 h 4.962 l -10.8405 12.39 l 12.753 16.86 H 38.005 l -7.821 -10.2255 L 21.235 47.625 H 16.27 l 11.595 -13.2525 L 15.631 18.375 H 25.87 l 7.0695 9.3465 z m -1.7415 26.28 h 2.7495 L 24.376 21.189 H 21.4255 z',
});

export default XIcon;
1 change: 1 addition & 0 deletions src/index.ts
Expand Up @@ -47,3 +47,4 @@ export { default as WhatsappIcon } from './WhatsappIcon';
export { default as WhatsappShareButton } from './WhatsappShareButton';
export { default as WorkplaceIcon } from './WorkplaceIcon';
export { default as WorkplaceShareButton } from './WorkplaceShareButton';
export { default as XIcon } from './XIcon';

0 comments on commit 18f2de2

Please sign in to comment.