changed the createdByName to Twenty(Sample data). (#7424)

I changed the createdByName from' system' to 'Twenty(Sample Data)'.

---------

Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
bmbaji
2024-10-04 12:57:15 -04:00
committed by GitHub
parent 2f223f3294
commit ae2bd66f45
6 changed files with 31 additions and 14 deletions

View File

@ -4,6 +4,7 @@ import {
IconCsv,
IconGmail,
IconGoogleCalendar,
IconRobot,
IconSettingsAutomation,
IconUserCircle,
} from 'twenty-ui';
@ -52,5 +53,12 @@ export const getSourceEnumOptions = (
AvatarIcon: IconSettingsAutomation,
isIconInverted: true,
},
{
id: 'SYSTEM',
name: 'System',
isSelected: selectedItemIds.includes('SYSTEM'),
AvatarIcon: IconRobot,
isIconInverted: true,
},
];
};

View File

@ -7,6 +7,7 @@ import {
IconCalendar,
IconCsv,
IconGmail,
IconRobot,
} from 'twenty-ui';
type ActorDisplayProps = Partial<FieldActorValue> & {
@ -29,12 +30,15 @@ export const ActorDisplay = ({
return IconGmail;
case 'CALENDAR':
return IconCalendar;
case 'SYSTEM':
return IconRobot;
default:
return undefined;
}
}, [source]);
const isIconInverted = source === 'API' || source === 'IMPORT';
const isIconInverted =
source === 'API' || source === 'IMPORT' || source === 'SYSTEM';
return (
<AvatarChip