Skip to content

Commit 29bb419

Browse files
authored
Add GithubIcon ( #83 )
2 parents 031f582 + 90ff75f commit 29bb419

File tree

6 files changed

+28
-3
lines changed

6 files changed

+28
-3
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 0.25.0 (2023-08-07)
2+
3+
### ✨ Features
4+
5+
* Add GithubIcon
6+
7+
Credits
8+
9+
* [@Bunlong](https://github.com/Bunlong)
10+
111
## 0.24.0 (2023-07-20)
212

313
### ✨ Features

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,7 @@ import {
902902
EmailIcon,
903903
FacebookIcon,
904904
FacebookMessengerIcon,
905+
GithubIcon,
905906
HatenaIcon,
906907
InstagramIcon,
907908
InstapaperIcon,
@@ -937,9 +938,9 @@ import {
937938

938939
## 📜 Changelog
939940

940-
Latest version 0.24.0 (2023-07-20):
941+
Latest version 0.25.0 (2023-08-07):
941942

942-
* Add documentary icon
943+
* Add GithubIcon
943944

944945
Details changes for each release are documented in the [CHANGELOG.md](https://github.com/Bunlong/next-share/blob/master/CHANGELOG.md).
945946

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-share",
3-
"version": "0.24.0",
3+
"version": "0.25.0",
44
"description": "Social media share buttons for your next React apps.",
55
"author": "Bunlong <[email protected]>",
66
"license": "MIT",

src/icons/GithubIcon.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import createIcon from '../hocs/createIcon';
2+
3+
const GithubIcon = createIcon({
4+
color: '#24292e',
5+
name: 'github',
6+
path: 'M32,16c-8.8,0-16,7.2-16,16c0,7.1,4.6,13.1,10.9,15.2 c0.8,0.1,1.1-0.3,1.1-0.8c0-0.4,0-1.4,0-2.7c-4.5,1-5.4-2.1-5.4-2.1c-0.7-1.8-1.8-2.3-1.8-2.3c-1.5-1,0.1-1,0.1-1 c1.6,0.1,2.5,1.6,2.5,1.6c1.4,2.4,3.7,1.7,4.7,1.3c0.1-1,0.6-1.7,1-2.1c-3.6-0.4-7.3-1.8-7.3-7.9c0-1.7,0.6-3.2,1.6-4.3 c-0.2-0.4-0.7-2,0.2-4.2c0,0,1.3-0.4,4.4,1.6c1.3-0.4,2.6-0.5,4-0.5c1.4,0,2.7,0.2,4,0.5c3.1-2.1,4.4-1.6,4.4-1.6 c0.9,2.2,0.3,3.8,0.2,4.2c1,1.1,1.6,2.5,1.6,4.3c0,6.1-3.7,7.5-7.3,7.9c0.6,0.5,1.1,1.5,1.1,3c0,2.1,0,3.9,0,4.4 c0,0.4,0.3,0.9,1.1,0.8C43.4,45.1,48,39.1,48,32C48,23.2,40.8,16,32,16z',
7+
});
8+
9+
export default GithubIcon;

src/next-share.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export { default as EmailIcon } from './icons/EmailIcon';
2222
export { default as GabIcon } from './icons/GabIcon';
2323
export { default as InstagramIcon } from './icons/InstagramIcon';
2424
export { default as SpotifyIcon } from './icons/SpotifyIcon';
25+
export { default as GithubIcon } from './icons/GithubIcon';
2526

2627
// Buttons
2728
export { default as FacebookShareButton } from './components/buttons/FacebookShareButton';

supports/create-next-app/pages/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ import {
5252
// RedditShareCount,
5353
InstagramIcon,
5454
SpotifyIcon,
55+
GithubIcon,
5556
} from 'next-share'
5657

5758
const Home: NextPage = () => {
@@ -260,6 +261,9 @@ const Home: NextPage = () => {
260261
<span style={{marginRight: 10, width: 32, height: 32}}>
261262
<SpotifyIcon size={32} round />
262263
</span>
264+
<span style={{marginRight: 10, width: 32, height: 32}}>
265+
<GithubIcon size={32} round />
266+
</span>
263267
{/* <OKShareCount url={'https://github.com/next-share'} /> */}
264268
<OKShareCount url={'https://github.com/next-share'}>
265269
{shareCount => <span className="myShareCountWrapper">OKShareCount: {shareCount}</span>}

0 commit comments

Comments
 (0)