Fix padding EditableCell DoubleText

This commit is contained in:
Charles Bochet
2023-06-21 22:42:38 -07:00
parent 817d6dcb05
commit df6376dce0
2 changed files with 9 additions and 4 deletions

View File

@ -17,11 +17,15 @@ export type OwnProps = {
export function PeopleCompanyCell({ people }: OwnProps) {
const [isCreating] = useRecoilScopedState(isCreateModeScopedState);
return isCreating ? (
<PeopleCompanyCreateCell people={people} />
) : (
return (
<EditableCellV2
editModeContent={<PeopleCompanyPicker people={people} />}
editModeContent={
isCreating ? (
<PeopleCompanyCreateCell people={people} />
) : (
<PeopleCompanyPicker people={people} />
)
}
nonEditModeContent={
<CompanyChip
name={people.company?.name ?? ''}