From 1086f6b4e22504ca71f4be34034ccc32b2fa9acf Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 26 Feb 2026 11:15:50 +0100 Subject: [PATCH] Fix share social --- web/components/buttons/copy-link-button.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/components/buttons/copy-link-button.tsx b/web/components/buttons/copy-link-button.tsx index c09222c2..74bf96fc 100644 --- a/web/components/buttons/copy-link-button.tsx +++ b/web/components/buttons/copy-link-button.tsx @@ -171,7 +171,7 @@ export async function mobileShare(url: string) { } } -const share = async (url: string) => { +export const share = async (url: string) => { const success = await mobileShare(url) if (!success) { window.open(url, '_blank', 'noopener,noreferrer') @@ -183,14 +183,14 @@ export const shareOnX = (profileUrl: string, text: string) => { const shareUrl = `https://twitter.com/intent/tweet?text=${encodedText}&url=${encodedUrl}` - share(shareUrl) + window.open(shareUrl, '_blank', 'noopener,noreferrer') } export const shareOnLinkedIn = (profileUrl: string) => { const encodedUrl = encodeURIComponent(profileUrl) const shareUrl = `https://www.linkedin.com/sharing/share-offsite/?url=${encodedUrl}` - share(shareUrl) + window.open(shareUrl, '_blank', 'noopener,noreferrer') } export const ShareProfileOnXButton = (props: {username: string; className?: string}) => { const {username, className} = props