Skip to content

Commit

Permalink
[material-ui][Autocomplete] Remove unnecessary typescript test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ektoras Tavoularis committed Apr 18, 2024
1 parent f039ff2 commit befda08
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions packages/mui-material/src/Autocomplete/Autocomplete.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import Autocomplete, {
} from '@mui/material/Autocomplete';
import TextField from '@mui/material/TextField';
import { ChipTypeMap } from '@mui/material/Chip';
import Paper, { PaperTypeMap, type PaperProps } from '@mui/material/Paper';

interface MyAutocompleteProps<
T,
Expand Down Expand Up @@ -172,22 +171,3 @@ function CustomListboxRef() {
>(e);
}}
/>;

function AutocompleteCustomPaper() {
return (
<Autocomplete
options={['one', 'two', 'three']}
renderInput={(params) => <TextField {...params} />}
// eslint-disable-next-line react/no-unstable-nested-components
PaperComponent={({ elevation, variant, ...props }) => (
<Paper {...{ elevation, variant }} {...props} />
)}
componentsProps={{
paper: {
elevation: 2,
variant: 'outlined',
},
}}
/>
);
}

0 comments on commit befda08

Please sign in to comment.