Enable phone field type (#5052)

### Description

 Enable phone field type

### Refs

https://github.com/twentyhq/twenty/issues/2700

### Demo


https://github.com/twentyhq/twenty/assets/140154534/e9810718-9916-4ad4-a080-4d718777de15

Fixes #2700

---------

Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
gitstart-app[bot]
2024-05-01 15:47:19 +02:00
committed by GitHub
parent 485670c823
commit 268c6b44d9
8 changed files with 14 additions and 9 deletions

View File

@ -100,7 +100,11 @@ export const SETTINGS_FIELD_TYPE_CONFIGS: Record<
Icon: IconRelationManyToMany,
},
[FieldMetadataType.Email]: { label: 'Email', Icon: IconMail },
[FieldMetadataType.Phone]: { label: 'Phone', Icon: IconPhone },
[FieldMetadataType.Phone]: {
label: 'Phone',
Icon: IconPhone,
defaultValue: '+1234-567-890',
},
[FieldMetadataType.Probability]: {
label: 'Rating',
Icon: IconTwentyStar,

View File

@ -74,6 +74,7 @@ const previewableTypes = [
FieldMetadataType.Text,
FieldMetadataType.Address,
FieldMetadataType.RawJson,
FieldMetadataType.Phone,
];
export const SettingsDataModelFieldSettingsFormCard = ({