diff --git a/src/custom/CatalogDetail/SocialSharePopper.tsx b/src/custom/CatalogDetail/SocialSharePopper.tsx index f89ff4d7..f6086612 100644 --- a/src/custom/CatalogDetail/SocialSharePopper.tsx +++ b/src/custom/CatalogDetail/SocialSharePopper.tsx @@ -1,12 +1,19 @@ import { Box, IconButton, Menu, MenuItem } from '@mui/material'; import React, { useState } from 'react'; import { FacebookShareButton, LinkedinShareButton, TwitterShareButton } from 'react-share'; +import { Typography } from '../../base'; import { ChainIcon, FacebookIcon, LinkedinIcon, ShareIcon, TwitterIcon } from '../../icons'; import { useTheme } from '../../theme'; import { Pattern } from '../CustomCatalog/CustomCard'; import { CustomTooltip } from '../CustomTooltip'; import { ErrorBoundary } from '../ErrorBoundary'; -import { ActionButton, CopyShareIconWrapper, VisibilityChip } from './style'; +import { + CopyShareIconWrapper, + ShareButton, + ShareButtonGroup, + ShareSideButton, + VisibilityChip +} from './style'; interface SocialSharePopperProps { details: Pattern; @@ -55,12 +62,22 @@ const SocialSharePopper: React.FC = ({ {showShareAction ? ( - - - - Share - - + + + + Share + + + + handleCopyUrl(cleanedType, details?.name, details?.id)} + > + + + + ) : ( <> {details?.visibility !== 'private' && ( diff --git a/src/custom/CatalogDetail/style.tsx b/src/custom/CatalogDetail/style.tsx index 1dfbea2b..ae6c1f05 100644 --- a/src/custom/CatalogDetail/style.tsx +++ b/src/custom/CatalogDetail/style.tsx @@ -1,4 +1,4 @@ -import { Link, ListItemButton, Paper, Typography } from '../../base'; +import { Button, ButtonGroup, Link, ListItemButton, Paper, Typography } from '../../base'; import { styled } from '../../theme'; import { Theme } from './types'; @@ -265,3 +265,24 @@ export const RedirectLink = styled(Link)(({ theme }) => ({ textDecoration: 'none', cursor: 'pointer' })); + +export const ShareButtonGroup = styled(ButtonGroup)({ + boxShadow: 'none', + border: 'none', + outline: 'none', + height: '76%' +}); + +export const ShareButton = styled(Button)(({ theme }) => ({ + backgroundColor: theme.palette.background.brand?.default, + color: 'white', + border: 'none', + borderRadius: '0.5rem 0px 0px 0.5rem' +})); + +export const ShareSideButton = styled(Button)(({ theme }) => ({ + backgroundColor: theme.palette.background.brand?.default, + color: 'white', + border: 'none', + borderRadius: '0px 0.5rem 0.5rem 0px' +}));