Create and EditableRelation component and make it generic (#107)

* Create and EditableRelation component and make it generic

* Refactor EditableCell component to be more flexible

* Complete Company picker on people page

* Fix lint
This commit is contained in:
Charles Bochet
2023-05-06 16:08:45 +02:00
committed by GitHub
parent 7ac2f8e1a6
commit 41c46c36ed
21 changed files with 637 additions and 198 deletions

View File

@ -6,7 +6,7 @@ export interface Opportunity {
icon: string;
}
export interface Company {
export type Company = {
id: string;
name: string;
domain_name: string;
@ -15,7 +15,10 @@ export interface Company {
opportunities: Opportunity[];
accountOwner?: User;
creationDate: Date;
}
};
export type PartialCompany = Partial<Company> &
Pick<Company, 'id' | 'name' | 'domain_name'>;
export type GraphqlQueryCompany = {
id: string;