fix: just change the order to match design (#1410)

* fix: just change the order to match design

* fix: view field definition change
This commit is contained in:
Jérémy M 2023-09-04 17:46:24 +02:00 committed by GitHub
parent 4889a69751
commit 6cf46cfdf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 25 deletions

View File

@ -60,15 +60,6 @@ export const companyShowFieldDefinition: FieldDefinition<FieldMetadata>[] = [
placeHolder: 'Address',
},
} satisfies FieldDefinition<FieldTextMetadata>,
{
key: 'createdAt',
name: 'Created at',
icon: <IconCalendar />,
type: 'date',
metadata: {
fieldName: 'createdAt',
},
} satisfies FieldDefinition<FieldDateMetadata>,
{
key: 'idealCustomerProfile',
name: 'ICP',
@ -88,4 +79,13 @@ export const companyShowFieldDefinition: FieldDefinition<FieldMetadata>[] = [
placeHolder: 'X',
},
} satisfies FieldDefinition<FieldURLMetadata>,
{
key: 'createdAt',
name: 'Created at',
icon: <IconCalendar />,
type: 'date',
metadata: {
fieldName: 'createdAt',
},
} satisfies FieldDefinition<FieldDateMetadata>,
];

View File

@ -52,14 +52,15 @@ export const personShowFieldDefinition: FieldDefinition<FieldMetadata>[] = [
},
} satisfies FieldDefinition<FieldPhoneMetadata>,
{
key: 'createdAt',
name: 'Created at',
icon: <IconCalendar />,
type: 'date',
key: 'jobTitle',
name: 'Job Title',
icon: <IconBriefcase />,
type: 'text',
metadata: {
fieldName: 'createdAt',
fieldName: 'jobTitle',
placeHolder: 'Job Title',
},
} satisfies FieldDefinition<FieldDateMetadata>,
} satisfies FieldDefinition<FieldTextMetadata>,
{
key: 'city',
name: 'City',
@ -70,16 +71,6 @@ export const personShowFieldDefinition: FieldDefinition<FieldMetadata>[] = [
placeHolder: 'City',
},
} satisfies FieldDefinition<FieldTextMetadata>,
{
key: 'jobTitle',
name: 'Job Title',
icon: <IconBriefcase />,
type: 'text',
metadata: {
fieldName: 'jobTitle',
placeHolder: 'Job Title',
},
} satisfies FieldDefinition<FieldTextMetadata>,
{
key: 'linkedinUrl',
name: 'Linkedin URL',
@ -100,4 +91,13 @@ export const personShowFieldDefinition: FieldDefinition<FieldMetadata>[] = [
placeHolder: 'X URL',
},
} satisfies FieldDefinition<FieldURLMetadata>,
{
key: 'createdAt',
name: 'Created at',
icon: <IconCalendar />,
type: 'date',
metadata: {
fieldName: 'createdAt',
},
} satisfies FieldDefinition<FieldDateMetadata>,
];