Skip to content

Commit

Permalink
refactor(autocomplete): linting
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong committed Jun 25, 2024
1 parent b99f94e commit bfb4bab
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ const itemsSectionData = [
},
];


const ControlledAutocomplete = <T = object>(props: AutocompleteProps<T>) => {
const [selectedKey, setSelectedKey] = React.useState<React.Key>("cat");
const ControlledAutocomplete = <T extends object>(props: AutocompleteProps<T>) => {
const [selectedKey, setSelectedKey] = React.useState<React.Key | null>("cat");

return (
<Autocomplete
Expand All @@ -77,7 +76,6 @@ const AutocompleteExample = (props: Partial<AutocompleteProps> = {}) => (
</Autocomplete>
);


describe("Autocomplete", () => {
it("should render correctly", () => {
const wrapper = render(<AutocompleteExample />);
Expand Down

0 comments on commit bfb4bab

Please sign in to comment.