From 970d9ee7f6bfd91f0b50d5a55c5d56b3e654974f Mon Sep 17 00:00:00 2001 From: Kanav Arora Date: Tue, 14 Nov 2023 21:37:54 +0530 Subject: [PATCH] 2320-fix(front): IconEye icon size and font fix (#2490) * 2320-fix(front): IconEye icon size and font fix * 2320-fix: StyledEye replaced with lighticonbutton --- .../companies/components/CompanyBoardCard.tsx | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/front/src/modules/companies/components/CompanyBoardCard.tsx b/front/src/modules/companies/components/CompanyBoardCard.tsx index 10e9cc2e0..85aa693db 100644 --- a/front/src/modules/companies/components/CompanyBoardCard.tsx +++ b/front/src/modules/companies/components/CompanyBoardCard.tsx @@ -4,6 +4,7 @@ import { useRecoilState } from 'recoil'; import { EntityChipVariant } from '@/ui/display/chip/components/EntityChip'; import { IconEye } from '@/ui/display/icon/index'; +import { LightIconButton } from '@/ui/input/button/components/LightIconButton'; import { Checkbox, CheckboxVariant } from '@/ui/input/components/Checkbox'; import { BoardCardIdContext } from '@/ui/layout/board/contexts/BoardCardIdContext'; import { useBoardContext } from '@/ui/layout/board/hooks/useBoardContext'; @@ -123,21 +124,6 @@ const StyledCompactIconContainer = styled.div` justify-content: center; `; -const StyledIconEye = styled(IconEye)` - color: ${({ theme }) => theme.font.color.tertiary}; - height: 24px; - padding-bottom: ${({ theme }) => theme.spacing(0.2)}; - padding-left: ${({ theme }) => theme.spacing(0.5)}; - padding-right: ${({ theme }) => theme.spacing(0.5)}; - - padding-top: ${({ theme }) => theme.spacing(0.2)}; - - &:hover { - background-color: ${({ theme }) => theme.background.transparent.medium}; - border-radius: ${({ theme }) => theme.border.radius.sm}; - } -`; - export const CompanyBoardCard = () => { const { BoardRecoilScopeContext } = useBoardContext(); @@ -203,7 +189,9 @@ export const CompanyBoardCard = () => { /> {showCompactView && ( - { e.stopPropagation(); setIsCardInCompactView(false);