From 6cf46cfdf5092ddd3066d06efc2b4972226b3440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20M?= Date: Mon, 4 Sep 2023 17:46:24 +0200 Subject: [PATCH] fix: just change the order to match design (#1410) * fix: just change the order to match design * fix: view field definition change --- .../constants/companyShowFieldDefinition.tsx | 18 +++++------ .../constants/personShowFieldDefinition.tsx | 32 +++++++++---------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/front/src/pages/companies/constants/companyShowFieldDefinition.tsx b/front/src/pages/companies/constants/companyShowFieldDefinition.tsx index 50a76c7f8..8c4d78a52 100644 --- a/front/src/pages/companies/constants/companyShowFieldDefinition.tsx +++ b/front/src/pages/companies/constants/companyShowFieldDefinition.tsx @@ -60,15 +60,6 @@ export const companyShowFieldDefinition: FieldDefinition[] = [ placeHolder: 'Address', }, } satisfies FieldDefinition, - { - key: 'createdAt', - name: 'Created at', - icon: , - type: 'date', - metadata: { - fieldName: 'createdAt', - }, - } satisfies FieldDefinition, { key: 'idealCustomerProfile', name: 'ICP', @@ -88,4 +79,13 @@ export const companyShowFieldDefinition: FieldDefinition[] = [ placeHolder: 'X', }, } satisfies FieldDefinition, + { + key: 'createdAt', + name: 'Created at', + icon: , + type: 'date', + metadata: { + fieldName: 'createdAt', + }, + } satisfies FieldDefinition, ]; diff --git a/front/src/pages/people/constants/personShowFieldDefinition.tsx b/front/src/pages/people/constants/personShowFieldDefinition.tsx index 23289216f..2917a139b 100644 --- a/front/src/pages/people/constants/personShowFieldDefinition.tsx +++ b/front/src/pages/people/constants/personShowFieldDefinition.tsx @@ -52,14 +52,15 @@ export const personShowFieldDefinition: FieldDefinition[] = [ }, } satisfies FieldDefinition, { - key: 'createdAt', - name: 'Created at', - icon: , - type: 'date', + key: 'jobTitle', + name: 'Job Title', + icon: , + type: 'text', metadata: { - fieldName: 'createdAt', + fieldName: 'jobTitle', + placeHolder: 'Job Title', }, - } satisfies FieldDefinition, + } satisfies FieldDefinition, { key: 'city', name: 'City', @@ -70,16 +71,6 @@ export const personShowFieldDefinition: FieldDefinition[] = [ placeHolder: 'City', }, } satisfies FieldDefinition, - { - key: 'jobTitle', - name: 'Job Title', - icon: , - type: 'text', - metadata: { - fieldName: 'jobTitle', - placeHolder: 'Job Title', - }, - } satisfies FieldDefinition, { key: 'linkedinUrl', name: 'Linkedin URL', @@ -100,4 +91,13 @@ export const personShowFieldDefinition: FieldDefinition[] = [ placeHolder: 'X URL', }, } satisfies FieldDefinition, + { + key: 'createdAt', + name: 'Created at', + icon: , + type: 'date', + metadata: { + fieldName: 'createdAt', + }, + } satisfies FieldDefinition, ];