capitalize had been moved into twenty-shared. Let's remove the duplicates in server and front !
14 lines
418 B
TypeScript
14 lines
418 B
TypeScript
import { capitalize } from 'twenty-shared';
|
|
|
|
export const buildDescriptionForRelationFieldMetadataOnFromField = ({
|
|
relationObjectMetadataNamePlural,
|
|
targetObjectLabelSingular,
|
|
}: {
|
|
relationObjectMetadataNamePlural: string;
|
|
targetObjectLabelSingular: string;
|
|
}) => {
|
|
const description = `${capitalize(relationObjectMetadataNamePlural)} tied to the ${targetObjectLabelSingular}`;
|
|
|
|
return { description };
|
|
};
|