From 8192597f351eef72c201ec4e60159106d83af277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ver=C3=B3nica=20Mil=C3=A1n?= Date: Fri, 7 Jun 2024 09:07:03 +0200 Subject: [PATCH] rollback last changes --- .../components/molecules/Autocomplete.d.ts | 2 -- .../src/components/molecules/Autocomplete.js | 22 +------------------ 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/packages/react-ui/src/components/molecules/Autocomplete.d.ts b/packages/react-ui/src/components/molecules/Autocomplete.d.ts index 51b17daea..2989adb7c 100644 --- a/packages/react-ui/src/components/molecules/Autocomplete.d.ts +++ b/packages/react-ui/src/components/molecules/Autocomplete.d.ts @@ -11,8 +11,6 @@ export type AutocompleteProps< > = MuiAutocompleteProps & { creatable?: boolean; newItemTitle?: React.ReactNode | string; - startAdornment?: React.ReactNode; - inputParams?: object; }; declare const Autocomplete: < diff --git a/packages/react-ui/src/components/molecules/Autocomplete.js b/packages/react-ui/src/components/molecules/Autocomplete.js index 5e0a1d558..ecf8a414e 100644 --- a/packages/react-ui/src/components/molecules/Autocomplete.js +++ b/packages/react-ui/src/components/molecules/Autocomplete.js @@ -1,10 +1,8 @@ import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; import { - InputAdornment, MenuItem, Autocomplete as MuiAutocomplete, - TextField, createFilterOptions } from '@mui/material'; @@ -69,22 +67,6 @@ const Autocomplete = forwardRef( renderOption={creatable ? creatableRenderOption : renderOption} freeSolo={creatable || freeSolo} forcePopupIcon={creatable || forcePopupIcon} - renderInput={(params) => { - if (startAdornment) { - params.InputProps.startAdornment = ( - {startAdornment} - ); - } - return ( -
- -
- ); - }} /> ); } @@ -92,9 +74,7 @@ const Autocomplete = forwardRef( Autocomplete.propTypes = { creatable: PropTypes.bool, - newItemTitle: PropTypes.oneOfType([PropTypes.string, PropTypes.element]), - startAdornment: PropTypes.element, - inputParams: PropTypes.object + newItemTitle: PropTypes.oneOfType([PropTypes.string, PropTypes.element]) }; export default Autocomplete;