From 089abbb1f4ccf62b4d5e1a727f5e1715c586ecbf Mon Sep 17 00:00:00 2001 From: prabhuignoto Date: Wed, 28 Feb 2024 17:03:59 +0530 Subject: [PATCH] fix deep scan issues --- src/components/elements/popover/popover.styles.ts | 4 ++-- .../timeline-card-content/content-footer.tsx | 5 ----- .../timeline-card-content/timeline-card-content.tsx | 1 - src/components/timeline-vertical/timeline-vertical.tsx | 8 -------- 4 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/components/elements/popover/popover.styles.ts b/src/components/elements/popover/popover.styles.ts index 91362209..6ba33c57 100644 --- a/src/components/elements/popover/popover.styles.ts +++ b/src/components/elements/popover/popover.styles.ts @@ -40,9 +40,9 @@ export const Selecter = styled.div<{ background: ${({ $theme }) => $theme.toolbarBtnBgColor}; color: ${({ $theme }) => $theme.toolbarTextColor}; border-radius: 25px; - box-shadow: ${({ $open, $isDarkMode: isDarkMode }) => + box-shadow: ${({ $open, $isDarkMode }) => !$open - ? `0px 1px 1px rgba(0, 0, 0, ${isDarkMode ? '0.85' : '0.2'})` + ? `0px 1px 1px rgba(0, 0, 0, ${$isDarkMode ? '0.85' : '0.2'})` : 'inset 0 0 1px 1px rgba(0, 0, 0, 0.2)'}; cursor: pointer; display: flex; diff --git a/src/components/timeline-elements/timeline-card-content/content-footer.tsx b/src/components/timeline-elements/timeline-card-content/content-footer.tsx index 6f33ffa1..bed8b644 100644 --- a/src/components/timeline-elements/timeline-card-content/content-footer.tsx +++ b/src/components/timeline-elements/timeline-card-content/content-footer.tsx @@ -80,11 +80,6 @@ const ContentFooter: FunctionComponent = ({ [showReadMore, textContentIsLarge], ); - // useEffect(() => { - // console.log('show more', showReadMore); - // console.log('text content is large', textContentIsLarge); - // }, [showMore, canShowMore, canShow]); - return ( <> {canShowMore ? ( diff --git a/src/components/timeline-elements/timeline-card-content/timeline-card-content.tsx b/src/components/timeline-elements/timeline-card-content/timeline-card-content.tsx index 01d18c4f..74cb13ab 100644 --- a/src/components/timeline-elements/timeline-card-content/timeline-card-content.tsx +++ b/src/components/timeline-elements/timeline-card-content/timeline-card-content.tsx @@ -128,7 +128,6 @@ const TimelineCardContent: React.FunctionComponent = return; } const detailsEle = detailsRef.current; - // console.log('textDensity', textDensity); if (!detailsEle) { return; } diff --git a/src/components/timeline-vertical/timeline-vertical.tsx b/src/components/timeline-vertical/timeline-vertical.tsx index caa9853c..801a5a92 100644 --- a/src/components/timeline-vertical/timeline-vertical.tsx +++ b/src/components/timeline-vertical/timeline-vertical.tsx @@ -60,14 +60,6 @@ const TimelineVertical: React.FunctionComponent = ({ return ( - {/* {enableOutline && ( - - )} */} {items.map((item, index) => { let className = '';