Move capitalize into twenty-shared (#9414)
capitalize had been moved into twenty-shared. Let's remove the duplicates in server and front !
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { capitalize } from 'src/utils/capitalize';
|
||||
import { capitalize } from 'twenty-shared';
|
||||
|
||||
export const camelToTitleCase = (camelCaseText: string) =>
|
||||
capitalize(camelCaseText)
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
export const capitalize = (string: string) => {
|
||||
return string.charAt(0).toUpperCase() + string.slice(1);
|
||||
};
|
||||
Reference in New Issue
Block a user