Skip to content

Commit 748ca63

Browse files
committed
Add GithubIcon
1 parent 031f582 commit 748ca63

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

src/icons/GithubIcon.ts

+9
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

+1
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

+4
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)