diff --git a/app/components/ui/social-share.tsx b/app/components/ui/social-share.tsx index f59d1e2..5b7017f 100644 --- a/app/components/ui/social-share.tsx +++ b/app/components/ui/social-share.tsx @@ -4,7 +4,6 @@ import { FacebookShareButton, LinkedinShareButton, TwitterShareButton, - InstapaperShareButton, } from 'react-share' import { FacebookIcon } from '~/components/icons/facebook' @@ -28,6 +27,12 @@ export const SocialShareButtons = ({ setShowPopup(true) setTimeout(() => setShowPopup(false), 2000) } + + const handleInstagramShare = () => { + const instagramUrl = `https://www.instagram.com/direct/new/?text=${encodeURIComponent(title + ' ' + url)}` + window.open(instagramUrl, '_blank') + } + return (
{showPopup && ( @@ -59,12 +64,9 @@ export const SocialShareButtons = ({ - +
) } diff --git a/app/pages/news-detail/index.tsx b/app/pages/news-detail/index.tsx index dd7cff9..36b3ac6 100644 --- a/app/pages/news-detail/index.tsx +++ b/app/pages/news-detail/index.tsx @@ -52,10 +52,10 @@ export const NewsDetailPage = () => {

- {/* */} + {/* END TODO: create component for this section */} @@ -78,7 +78,7 @@ export const NewsDetailPage = () => {