@ -25,15 +25,13 @@ export function CompanyAccountOwnerEditableField({ company }: OwnProps) {
|
||||
}}
|
||||
parentHotkeyScope={{
|
||||
scope: PageHotkeyScope.CompanyShowPage,
|
||||
customScopes: {
|
||||
goto: true,
|
||||
},
|
||||
}}
|
||||
iconLabel={<IconUserCircle />}
|
||||
editModeContent={
|
||||
<CompanyAccountOwnerPickerFieldEditMode
|
||||
parentHotkeyScope={{
|
||||
scope: PageHotkeyScope.CompanyShowPage,
|
||||
}}
|
||||
company={company}
|
||||
/>
|
||||
<CompanyAccountOwnerPickerFieldEditMode company={company} />
|
||||
}
|
||||
displayModeContent={
|
||||
company.accountOwner?.displayName ? (
|
||||
|
||||
@ -24,9 +24,8 @@ export function CompanyAccountOwnerPickerFieldEditMode({
|
||||
company,
|
||||
onSubmit,
|
||||
onCancel,
|
||||
parentHotkeyScope,
|
||||
}: OwnProps) {
|
||||
const { closeEditableField } = useEditableField(parentHotkeyScope);
|
||||
const { closeEditableField } = useEditableField();
|
||||
|
||||
function handleSubmit() {
|
||||
closeEditableField();
|
||||
|
||||
@ -54,6 +54,7 @@ export function CompanyAddressEditableField({ company }: OwnProps) {
|
||||
/>
|
||||
}
|
||||
displayModeContent={internalValue ?? ''}
|
||||
isDisplayModeContentEmpty={!(internalValue !== '')}
|
||||
/>
|
||||
</RecoilScope>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user