Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Kezik committed Sep 10, 2024
1 parent cda5eb6 commit 2a31514
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,19 @@ export const ApplicationDetailsHeader = ({ application }: Props) => {
BrandIcon: IconBrandFacebook,
text: translate('Share via Facebook'),
onClick: () => {
const shareUrl = encodeURIComponent(window.location.href);
const shareUrl = encodeURIComponent(window.location.href); // link to app
window.open(`https://m.me/?link=${shareUrl}`, '_blank');
},
},
{
BrandIcon: IconBrandX,
text: translate('Share via X'),
onClick: () => {
const shareText = encodeURIComponent(
'Check out this awesome content!',
const shareUrl = encodeURIComponent(window.location.href); // link to app
window.open(
`https://twitter.com/messages/compose?text=${shareUrl}`,
'_blank',
);
const twitterUrl = `https://twitter.com/messages/compose?text=${shareText}`;

window.open(twitterUrl, '_blank');
},
},
],
Expand Down

0 comments on commit 2a31514

Please sign in to comment.