target device & action device v2

This commit is contained in:
ari committed 2022-06-17 16:06:51 -04:00
1 parent 04f3e6194f
commit a32e365d86
9 files changed
+173 -92

No files matched your search

@@ -19,14 +19,15 @@ export type InputAutoCompleteProps<T extends Option<any>> = {
options: T[];
getLabel?: (opt: T) => string;
getID?: (opt: T) => string;
helperText?: string;
endAdornment?: ReactNode;
required?: boolean;
onlyShowLabel?: boolean;
} & InputAutoCompletePropsBase;
export type InputAutoCompletePropsBase = {
label?: string;
className?: string;
disabled?: boolean;
required?: boolean;
onlyShowLabel?: boolean;
helperText?: string;
endAdornment?: ReactNode;
} & (
| {
value: string | null;
@@ -143,6 +144,7 @@ export function InputAutoComplete<T extends Option>(
options={options}
onChange={onChange}
getOptionLabel={getLabel as any}
disabled={props.disabled}
PopperComponent={(props) => {
return (
<Popper
@@ -200,6 +202,7 @@ export function InputAutoComplete<T extends Option>(
required={props.required}
label={props.label ?? "Entity ID"}
helperText={helperText}
disabled={props.disabled}
error={error}
/>
)}