Skip to content

Commit b6f4cef

Browse files
authored
Add SpotifyIcon ( #91 )
2 parents b384d05 + ebfb489 commit b6f4cef

File tree

6 files changed

+29
-5
lines changed

6 files changed

+29
-5
lines changed

CHANGELOG.md

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

313
### ✨ Features

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,9 +894,9 @@ import { VKShareCount } from 'next-share'
894894

895895
## 📜 Changelog
896896

897-
Latest version 0.22.2 (2023-07-04):
897+
Latest version 0.23.0 (2023-07-05):
898898

899-
* Fix TwitterShareButton doesn't work on mobile devices
899+
* Add SpotifyIcon
900900

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

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.22.2",
3+
"version": "0.23.0",
44
"description": "Social media share buttons for your next React apps.",
55
"author": "Bunlong <[email protected]>",
66
"license": "MIT",

src/icons/SpotifyIcon.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 SpotifyIcon = createIcon({
4+
color: '#2EBD59',
5+
name: 'spotify',
6+
path: 'M32,16c-8.8,0-16,7.2-16,16c0,8.8,7.2,16,16,16c8.8,0,16-7.2,16-16C48,23.2,40.8,16,32,16 M39.3,39.1c-0.3,0.5-0.9,0.6-1.4,0.3c-3.8-2.3-8.5-2.8-14.1-1.5c-0.5,0.1-1.1-0.2-1.2-0.7c-0.1-0.5,0.2-1.1,0.8-1.2 c6.1-1.4,11.3-0.8,15.5,1.8C39.5,38,39.6,38.6,39.3,39.1 M41.3,34.7c-0.4,0.6-1.1,0.8-1.7,0.4c-4.3-2.6-10.9-3.4-15.9-1.9 c-0.7,0.2-1.4-0.2-1.6-0.8c-0.2-0.7,0.2-1.4,0.8-1.6c5.8-1.8,13-0.9,18,2.1C41.5,33.4,41.7,34.1,41.3,34.7 M41.5,30.2 c-5.2-3.1-13.7-3.3-18.6-1.9c-0.8,0.2-1.6-0.2-1.9-1c-0.2-0.8,0.2-1.6,1-1.9c5.7-1.7,15-1.4,21,2.1c0.7,0.4,0.9,1.3,0.5,2.1 C43.1,30.4,42.2,30.6,41.5,30.2',
7+
});
8+
9+
export default SpotifyIcon;

src/next-share.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export { default as FacebookMessengerIcon } from './icons/FacebookMessengerIcon'
2121
export { default as EmailIcon } from './icons/EmailIcon';
2222
export { default as GabIcon } from './icons/GabIcon';
2323
export { default as InstagramIcon } from './icons/InstagramIcon';
24+
export { default as SpotifyIcon } from './icons/SpotifyIcon';
2425

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

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ import {
5151
// FacebookShareCount,
5252
// RedditShareCount,
5353
InstagramIcon,
54+
SpotifyIcon,
5455
} from 'next-share'
5556

5657
const Home: NextPage = () => {
@@ -253,9 +254,12 @@ const Home: NextPage = () => {
253254
<GabIcon size={32} round />
254255
</div>
255256
</GabShareButton>
256-
<div style={{marginRight: 10, width: 32, height: 32}}>
257+
<span style={{marginRight: 10, width: 32, height: 32}}>
257258
<InstagramIcon size={32} round />
258-
</div>
259+
</span>
260+
<span style={{marginRight: 10, width: 32, height: 32}}>
261+
<SpotifyIcon size={32} round />
262+
</span>
259263
{/* <OKShareCount url={'https://github.com/next-share'} /> */}
260264
<OKShareCount url={'https://github.com/next-share'}>
261265
{shareCount => <span className="myShareCountWrapper">OKShareCount: {shareCount}</span>}

0 commit comments

Comments
 (0)