From 0d570caff5d923e132789d7a5a62a04253d0a531 Mon Sep 17 00:00:00 2001 From: Sachin <90304264+sachinks07@users.noreply.github.com> Date: Tue, 1 Oct 2024 12:32:13 +0530 Subject: [PATCH] Fix cursor should not be pointer when record image identifier is not Editable (#7320) - This PR solves the issue Cursor should not be "pointer" when record image identifier is not editable #7277 --------- Co-authored-by: Sachin KS --- .../ui/layout/show-page/components/ShowPageSummaryCard.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSummaryCard.tsx b/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSummaryCard.tsx index 94c3d934c..9627be5d7 100644 --- a/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSummaryCard.tsx +++ b/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSummaryCard.tsx @@ -63,8 +63,9 @@ const StyledTitle = styled.div<{ isMobile: boolean }>` max-width: 90%; `; -const StyledAvatarWrapper = styled.div` - cursor: pointer; +const StyledAvatarWrapper = styled.div<{ isAvatarEditable: boolean }>` + cursor: ${({ isAvatarEditable }) => + isAvatarEditable ? 'pointer' : 'default'}; `; const StyledFileInput = styled.input` @@ -130,7 +131,7 @@ export const ShowPageSummaryCard = ({ return ( - +