File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,20 +7,26 @@ interface ShareButtonsProps {
77
88export default function ShareButtons ( { url, title = '' } : ShareButtonsProps ) {
99 const linkedinUrl = `https://www.linkedin.com/sharing/share-offsite/?url=${ encodeURIComponent ( url ) } ` ;
10- const twitterUrl = `https://twitter.com/intent/tweet?url=${ encodeURIComponent ( url ) } &text=${ encodeURIComponent ( title ) } ` ;
10+ const twitterUrl = `https://x.com/intent/tweet?url=${ encodeURIComponent ( url ) } ` +
11+ ( title ? `&text=${ encodeURIComponent ( title ) } ` : '' ) ;
1112
1213 return (
1314 < div className = "flex gap-3" >
1415 < a
1516 href = { linkedinUrl }
1617 target = "_blank"
1718 rel = "noopener noreferrer"
18- aria-label = "Share on LinkedIn"
19+ aria-label = "Share on LinkedIn (opens in a new tab) "
1920 >
2021 < FaLinkedin size = { 24 } aria-hidden = "true" />
2122 </ a >
2223
23- < a href = { twitterUrl } target = "_blank" rel = "noopener noreferrer" aria-label = "Share on X" >
24+ < a
25+ href = { twitterUrl }
26+ target = "_blank"
27+ rel = "noopener noreferrer"
28+ aria-label = "Share on X / Twitter (opens in a new tab)"
29+ >
2430 < FaXTwitter size = { 24 } aria-hidden = "true" />
2531 </ a >
2632 </ div >
You can’t perform that action at this time.
0 commit comments