From a73a822581c50392e4bb74e71f0115afc4e06506 Mon Sep 17 00:00:00 2001 From: Amit Amrutiya Date: Thu, 21 Nov 2024 13:03:00 +0530 Subject: [PATCH] feat: replace Tooltip with CustomTooltip and update icon colors in SocialSharePopper Signed-off-by: Amit Amrutiya --- src/custom/CatalogDetail/SocialSharePopper.tsx | 15 ++++++++------- src/custom/CatalogDetail/style.tsx | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/custom/CatalogDetail/SocialSharePopper.tsx b/src/custom/CatalogDetail/SocialSharePopper.tsx index 3c24b32d..01baabd5 100644 --- a/src/custom/CatalogDetail/SocialSharePopper.tsx +++ b/src/custom/CatalogDetail/SocialSharePopper.tsx @@ -1,9 +1,10 @@ -import { Box, IconButton, Menu, MenuItem, Tooltip } from '@mui/material'; +import { Box, IconButton, Menu, MenuItem } from '@mui/material'; import React, { useState } from 'react'; import { FacebookShareButton, LinkedinShareButton, TwitterShareButton } from 'react-share'; 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 { CopyShareIconWrapper, VisibilityChip } from './style'; @@ -50,23 +51,23 @@ const SocialSharePopper: React.FC = ({ {details?.visibility !== 'private' && ( - + handleCopyUrl(cleanedType, details?.name, details?.id)} > - + - + )} {(details?.visibility === 'published' || details?.visibility === 'public') && ( <> - + - + - + ({ letterSpacing: '0.15px', lineHeight: '1.5', textTransform: 'lowercase', - color: theme.palette.background.supplementary, + color: theme.palette.icon.secondary, [' @media (max-width: 285px)']: { fontSize: '0.86rem' } })); export const MetricsData = styled('div')(({ theme }) => ({ - color: theme.palette.background.supplementary, + color: theme.palette.icon.secondary, fontSize: '1.2rem', fontWeight: 'bold', lineHeight: '1.5'