Make full name editable on People page (#100)

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Charles Bochet
2023-05-04 18:38:29 +02:00
committed by GitHub
parent f6b691945c
commit 89dc5b4d60
7 changed files with 190 additions and 26 deletions

View File

@ -41,9 +41,6 @@ function EditableCell({
const onEditModeChange = (isEditMode: boolean) => {
setIsEditMode(isEditMode);
if (isEditMode) {
inputRef.current?.focus();
}
};
return (
@ -55,6 +52,7 @@ function EditableCell({
<StyledInplaceInput
isEditMode={isEditMode}
placeholder={placeholder || ''}
autoFocus
ref={inputRef}
value={inputValue}
onChange={(event: ChangeEvent<HTMLInputElement>) => {