Unset companies and owners (#1185)

* unselect users and companies

* Icon now works with theme

---------

Co-authored-by: vboxuser <vboxuser@Ubu.myguest.virtualbox.org>
Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
This commit is contained in:
josoriomarin
2023-08-25 15:28:17 -04:00
committed by GitHub
parent 0e5dcd7037
commit 36cbafe4cc
6 changed files with 42 additions and 6 deletions

View File

@ -47,7 +47,13 @@ export function UserPicker({
) {
onSubmit(selectedUser ?? null);
}
const noUser: UserForSelect = {
entityType: Entity.User,
id: '',
name: 'No Owner',
avatarType: 'rounded',
avatarUrl: '',
};
return (
<SingleEntitySelect
width={width}
@ -58,6 +64,7 @@ export function UserPicker({
entitiesToSelect: users.entitiesToSelect,
selectedEntity: users.selectedEntities[0],
}}
noUser={noUser}
/>
);
}