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

@ -1,7 +1,7 @@
import * as React from 'react';
import styled from '@emotion/styled';
type OwnProps = {
export type CompanyChipPropsType = {
name: string;
picture?: string;
};
@ -26,7 +26,7 @@ const StyledContainer = styled.span`
}
`;
function CompanyChip({ name, picture }: OwnProps) {
function CompanyChip({ name, picture }: CompanyChipPropsType) {
return (
<StyledContainer data-testid="company-chip">
{picture && (