From 960410341b950fe5950861d96f342d3e1e3c8bef Mon Sep 17 00:00:00 2001 From: Tal-Ben-Avi Date: Mon, 1 Apr 2024 15:37:28 +0300 Subject: [PATCH] fix social icons sizes --- .../content/@slug/SocialShare/SocialShare.tsx | 40 ++++++++++--------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/workspaces/website/src/pages/content/@slug/SocialShare/SocialShare.tsx b/workspaces/website/src/pages/content/@slug/SocialShare/SocialShare.tsx index 0b94619cfa..30e46fe3b7 100644 --- a/workspaces/website/src/pages/content/@slug/SocialShare/SocialShare.tsx +++ b/workspaces/website/src/pages/content/@slug/SocialShare/SocialShare.tsx @@ -1,5 +1,9 @@ import { Flex, Icon, Text } from "@chakra-ui/react"; -import { TwitterShareButton, TelegramShareButton } from "react-share"; +import { + TwitterShareButton, + TelegramShareButton, + LinkedinShareButton, +} from "react-share"; import { FaTelegram } from "react-icons/fa"; import { FaTwitter } from "react-icons/fa"; import { FaLinkedin } from "react-icons/fa"; @@ -11,7 +15,7 @@ interface Props { } const SocialShare = ({ params: { slug, locale } }: Props) => { - const shareUrl = `${import.meta.env.VITE_SITE_URL}${locale}/content/${slug}`; + const shareUrl = `${import.meta.env.VITE_SITE_URL}/${locale}/content/${slug}`; const encodedUrl = encodeURIComponent(shareUrl); const linkedinShareUrl = `https://www.linkedin.com/sharing/share-offsite/?url=${encodedUrl}`; const handleLinkedinShare = () => window.open(linkedinShareUrl, "_blank"); @@ -27,38 +31,36 @@ const SocialShare = ({ params: { slug, locale } }: Props) => { - + - + - + + + );