mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-06 15:10:29 +00:00
Merge pull request #3298 from rickyltwong/feat/threads-button
增加 Threads Social & Share button
This commit is contained in:
@@ -37,6 +37,8 @@ import {
|
|||||||
TumblrShareButton,
|
TumblrShareButton,
|
||||||
TwitterIcon,
|
TwitterIcon,
|
||||||
TwitterShareButton,
|
TwitterShareButton,
|
||||||
|
ThreadsIcon,
|
||||||
|
ThreadsShareButton,
|
||||||
ViberIcon,
|
ViberIcon,
|
||||||
ViberShareButton,
|
ViberShareButton,
|
||||||
VKIcon,
|
VKIcon,
|
||||||
@@ -312,6 +314,16 @@ const ShareButtons = ({ post }) => {
|
|||||||
<HatenaIcon size={32} round />
|
<HatenaIcon size={32} round />
|
||||||
</HatenaShareButton>
|
</HatenaShareButton>
|
||||||
)
|
)
|
||||||
|
case 'threads':
|
||||||
|
return (
|
||||||
|
<ThreadsShareButton
|
||||||
|
key={singleService}
|
||||||
|
url={shareUrl}
|
||||||
|
title={titleWithSiteInfo}
|
||||||
|
className='mx-1'>
|
||||||
|
<ThreadsIcon size={32} round />
|
||||||
|
</ThreadsShareButton>
|
||||||
|
)
|
||||||
case 'qq':
|
case 'qq':
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
"react-facebook": "^8.1.4",
|
"react-facebook": "^8.1.4",
|
||||||
"react-hotkeys-hook": "^4.5.0",
|
"react-hotkeys-hook": "^4.5.0",
|
||||||
"react-notion-x": "6.16.0",
|
"react-notion-x": "6.16.0",
|
||||||
"react-share": "^4.4.1",
|
"react-share": "^5.2.2",
|
||||||
"react-tweet-embed": "~2.0.0"
|
"react-tweet-embed": "~2.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -99,6 +99,15 @@ const SocialButton = () => {
|
|||||||
<i className='fab fa-youtube transform hover:scale-125 duration-150' />
|
<i className='fab fa-youtube transform hover:scale-125 duration-150' />
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
|
{siteConfig('CONTACT_THREADS') && (
|
||||||
|
<a
|
||||||
|
target='_blank'
|
||||||
|
rel='noreferrer'
|
||||||
|
title={'threads'}
|
||||||
|
href={siteConfig('CONTACT_THREADS')}>
|
||||||
|
<i className='fab fa-threads transform hover:scale-125 duration-150' />
|
||||||
|
</a>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user