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:
@ -27,6 +27,7 @@ export function SingleEntitySelect<
|
||||
onCancel,
|
||||
width,
|
||||
disableBackgroundBlur = false,
|
||||
noUser,
|
||||
}: {
|
||||
onCancel?: () => void;
|
||||
onCreate?: () => void;
|
||||
@ -34,6 +35,7 @@ export function SingleEntitySelect<
|
||||
onEntitySelected: (entity: CustomEntityForSelect | null | undefined) => void;
|
||||
disableBackgroundBlur?: boolean;
|
||||
width?: number;
|
||||
noUser?: CustomEntityForSelect;
|
||||
}) {
|
||||
const containerRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
@ -53,7 +55,6 @@ export function SingleEntitySelect<
|
||||
onCancel?.();
|
||||
},
|
||||
});
|
||||
|
||||
return (
|
||||
<StyledDropdownMenu
|
||||
disableBlur={disableBackgroundBlur}
|
||||
@ -70,6 +71,7 @@ export function SingleEntitySelect<
|
||||
entities={entities}
|
||||
onEntitySelected={onEntitySelected}
|
||||
onCancel={onCancel}
|
||||
noUser={noUser}
|
||||
/>
|
||||
{showCreateButton && (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user