Skip to content

Commit a73a822

Browse files
committed
feat: replace Tooltip with CustomTooltip and update icon colors in SocialSharePopper
Signed-off-by: Amit Amrutiya <[email protected]>
1 parent ed6b8b1 commit a73a822

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/custom/CatalogDetail/SocialSharePopper.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { Box, IconButton, Menu, MenuItem, Tooltip } from '@mui/material';
1+
import { Box, IconButton, Menu, MenuItem } from '@mui/material';
22
import React, { useState } from 'react';
33
import { FacebookShareButton, LinkedinShareButton, TwitterShareButton } from 'react-share';
44
import { ChainIcon, FacebookIcon, LinkedinIcon, ShareIcon, TwitterIcon } from '../../icons';
55
import { useTheme } from '../../theme';
66
import { Pattern } from '../CustomCatalog/CustomCard';
7+
import { CustomTooltip } from '../CustomTooltip';
78
import { ErrorBoundary } from '../ErrorBoundary';
89
import { CopyShareIconWrapper, VisibilityChip } from './style';
910

@@ -50,23 +51,23 @@ const SocialSharePopper: React.FC<SocialSharePopperProps> = ({
5051
</VisibilityChip>
5152

5253
{details?.visibility !== 'private' && (
53-
<Tooltip title="Copy Link" placement="top" arrow>
54+
<CustomTooltip title="Copy Link" placement="top" arrow>
5455
<IconButton
5556
sx={{ borderRadius: '0.1rem', padding: '0.5rem' }}
5657
onClick={() => handleCopyUrl(cleanedType, details?.name, details?.id)}
5758
>
58-
<ChainIcon height={'24'} width={'24'} />
59+
<ChainIcon height={'24'} width={'24'} fill={theme.palette.icon.secondary} />
5960
</IconButton>
60-
</Tooltip>
61+
</CustomTooltip>
6162
)}
6263

6364
{(details?.visibility === 'published' || details?.visibility === 'public') && (
6465
<>
65-
<Tooltip title={title} placement="top" arrow>
66+
<CustomTooltip title={title} placement="top" arrow>
6667
<IconButton sx={{ borderRadius: '0.1rem', padding: '0.5rem' }} onClick={handleClick}>
67-
<ShareIcon height={24} width={22} />
68+
<ShareIcon height={24} width={22} fill={theme.palette.icon.secondary} />
6869
</IconButton>
69-
</Tooltip>
70+
</CustomTooltip>
7071

7172
<Menu
7273
anchorEl={anchorEl}

src/custom/CatalogDetail/style.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,13 @@ export const MetricsType = styled('div')(({ theme }) => ({
172172
letterSpacing: '0.15px',
173173
lineHeight: '1.5',
174174
textTransform: 'lowercase',
175-
color: theme.palette.background.supplementary,
175+
color: theme.palette.icon.secondary,
176176
[' @media (max-width: 285px)']: {
177177
fontSize: '0.86rem'
178178
}
179179
}));
180180
export const MetricsData = styled('div')(({ theme }) => ({
181-
color: theme.palette.background.supplementary,
181+
color: theme.palette.icon.secondary,
182182
fontSize: '1.2rem',
183183
fontWeight: 'bold',
184184
lineHeight: '1.5'

0 commit comments

Comments
 (0)