update Notes & Tasks to display the first-letter icon (#15729)
Closes https://github.com/twentyhq/twenty/issues/15630 ## Description I've updated the Notes & Tasks to display the first-letter icon. I only applied this change to the SummaryCard component to avoid conflict with the content of https://github.com/twentyhq/twenty/issues/6486. ## Test <img width="1155" height="178" alt="スクリーンショット 2025-11-09 19 02 41" src="https://github.com/user-attachments/assets/3b065f94-7bb8-4ba9-a0f0-3c32fb556e7e" /> <img width="1158" height="229" alt="スクリーンショット 2025-11-09 19 02 23" src="https://github.com/user-attachments/assets/884ff3b6-2c48-4557-8b45-64f94a8fd6a1" /> Co-authored-by: Takuya Kurimoto <takuya004869@gmail.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { useGetStandardObjectIcon } from '@/object-metadata/hooks/useGetStandardObjectIcon';
|
||||
import { useLabelIdentifierFieldMetadataItem } from '@/object-metadata/hooks/useLabelIdentifierFieldMetadataItem';
|
||||
import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem';
|
||||
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular';
|
||||
@@ -45,7 +44,6 @@ export const SummaryCard = ({
|
||||
objectRecordId,
|
||||
});
|
||||
|
||||
const { Icon, IconColor } = useGetStandardObjectIcon(objectNameSingular);
|
||||
const isMobile = useIsMobile() || isInRightDrawer;
|
||||
|
||||
const recordIdentifier = useRecoilValue(
|
||||
@@ -74,8 +72,6 @@ export const SummaryCard = ({
|
||||
isMobile={isMobile}
|
||||
id={objectRecordId}
|
||||
logoOrAvatar={recordIdentifier?.avatarUrl ?? ''}
|
||||
icon={Icon}
|
||||
iconColor={IconColor}
|
||||
avatarPlaceholder={recordIdentifier?.name ?? ''}
|
||||
date={recordCreatedAt ?? ''}
|
||||
loading={
|
||||
|
||||
Reference in New Issue
Block a user