diff --git a/striker-ui/components/Autocomplete.tsx b/striker-ui/components/Autocomplete.tsx index 5bd11c3a..b6bcfed7 100644 --- a/striker-ui/components/Autocomplete.tsx +++ b/striker-ui/components/Autocomplete.tsx @@ -3,6 +3,7 @@ import { autocompleteClasses as muiAutocompleteClasses, AutocompleteProps as MUIAutocompleteProps, AutocompleteRenderInputParams as MUIAutocompleteRenderInputParams, + Box, Grow as MUIGrow, outlinedInputClasses as muiOutlinedInputClasses, Paper as MUIPaper, @@ -12,6 +13,8 @@ import { import { GREY, TEXT } from '../lib/consts/DEFAULT_THEME'; +import InputMessageBox from './InputMessageBox'; +import { MessageBoxProps } from './MessageBox'; import OutlinedInputWithLabel, { OutlinedInputWithLabelProps, } from './OutlinedInputWithLabel'; @@ -21,6 +24,7 @@ type AutocompleteOptionalProps = { inputWithLabelProps: OutlinedInputWithLabelProps, renderInputParams?: MUIAutocompleteRenderInputParams, ) => void; + messageBoxProps?: Partial; }; type AutocompleteProps< @@ -54,8 +58,14 @@ const Autocomplete = < >( autocompleteProps: AutocompleteProps, ): JSX.Element => { - const { componentsProps, extendRenderInput, label, renderInput, sx } = - autocompleteProps; + const { + componentsProps, + extendRenderInput, + label, + messageBoxProps, + renderInput, + sx, + } = autocompleteProps; const combinedComponentsProps: AutocompleteProps< T, Multiple, @@ -109,16 +119,20 @@ const Autocomplete = < }; return ( - + + + {/* eslint-disable-next-line react/jsx-props-no-spreading */} + + ); };