Skip to content

Commit

Permalink
[P2PV2] - twitter logo update (deriv-com#14717)
Browse files Browse the repository at this point in the history
* fix: change twitter logo to x

* fix: removed unused svg file
  • Loading branch information
nada-deriv authored Apr 22, 2024
1 parent d9c483d commit 39717e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import React from 'react';
import { FacebookShareButton, TelegramShareButton, TwitterShareButton, WhatsappShareButton } from 'react-share';
import { SocialFacebookBrandIcon, SocialGoogleBrandIcon, SocialTelegramBrandIcon } from '@deriv/quill-icons';
import { Text } from '@deriv-com/ui';
import XIcon from '../../../public/ic-stock-twitter.svg';
import {
LabelPairedXTwitterLgIcon,
SocialFacebookBrandIcon,
SocialGoogleBrandIcon,
SocialTelegramBrandIcon,
} from '@deriv/quill-icons';
import WhatsappIcon from '../../../public/ic-whatsapp-filled.svg';
import './ShareAdsSocials.scss';

Expand All @@ -17,38 +20,31 @@ const getShareButtons = (advertUrl: string) => [
icon: <WhatsappIcon className='h-[34px] w-[34px]' />,
messagePropName: 'title',
ShareButton: WhatsappShareButton,
size: 34,
text: 'WhatsApp',
},
{
icon: <SocialFacebookBrandIcon />,
messagePropName: 'quote',
ShareButton: FacebookShareButton,
size: 34,
text: 'Facebook',
},
{
icon: <SocialTelegramBrandIcon />,
messagePropName: 'title',
ShareButton: TelegramShareButton,
size: 34,
text: 'Telegram',
},
{
icon: <XIcon />,
icon: <LabelPairedXTwitterLgIcon height={36} width={36} />,
messagePropName: 'title',
ShareButton: TwitterShareButton,
size: 28,
smallIcon: true,
text: 'Twitter',
text: 'X',
},
{
href: `https://mail.google.com/mail/?view=cm&fs=1&body=${encodeURIComponent(advertUrl)}`,
icon: <SocialGoogleBrandIcon />,
rel: 'noreferrer',
ShareButton: 'a',
size: 28,
smallIcon: true,
target: '_blank',
text: 'Gmail',
},
Expand All @@ -66,7 +62,6 @@ const ShareMyAdsSocials = ({ advertUrl, customMessage }: TShareMyAdsSocialsProps
{...(rel && { rel: 'noreferrer' })}
>
<div className='p2p-v2-share-ads-socials__circle'>{icon}</div>
<Text size='2xs'>{text}</Text>
</ShareButton>
))}
</div>
Expand Down
1 change: 0 additions & 1 deletion packages/p2p-v2/src/public/ic-stock-twitter.svg

This file was deleted.

0 comments on commit 39717e8

Please sign in to comment.