The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix cursor should not be pointer when record image identifier is not Editable (#7320)
Sachin0d570caff5d9
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.tsxindex 94c3d934cb1..9627be5d7e6 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 (<StyledShowPageSummaryCard isMobile={isMobile}>- <StyledAvatarWrapper>+ <StyledAvatarWrapper isAvatarEditable={!!onUploadPicture}><AvataravatarUrl={logoOrAvatar}onClick={onUploadPicture ? handleAvatarClick : undefined}