diff --git a/src/components/homepage/RecentChangeCard.tsx b/src/components/homepage/RecentChangeCard.tsx index 73e3900f..0e6de9a6 100644 --- a/src/components/homepage/RecentChangeCard.tsx +++ b/src/components/homepage/RecentChangeCard.tsx @@ -33,6 +33,20 @@ const entityTypeColors = { company: 'bg-indigo-500/10 text-indigo-700 dark:text-indigo-400 border-indigo-500/20', }; +const formatEntityType = (type: string): string => { + return type + .split('_') + .map(word => word.charAt(0).toUpperCase() + word.slice(1)) + .join(' '); +}; + +const formatChangeType = (type: string): string => { + return type + .split('_') + .map(word => word.charAt(0).toUpperCase() + word.slice(1)) + .join(' '); +}; + export function RecentChangeCard({ entityType, entityId, @@ -78,10 +92,10 @@ export function RecentChangeCard({
- {entityType} + {formatEntityType(entityType)} - {changeType} + {formatChangeType(changeType)}

{entityName}