Upgrade @types (#9261)

* Upgrade @types

* Make typescript happier
This commit is contained in:
Michael Telatynski 2022-09-12 11:58:05 +01:00 committed by GitHub
parent a9f04514fb
commit 0ab476b828
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 27 additions and 36 deletions

View file

@ -300,7 +300,7 @@ export default class Dropdown extends React.Component<DropdownProps, IState> {
}
private getMenuOptions() {
const options = React.Children.map(this.props.children, (child) => {
const options = React.Children.map(this.props.children, (child: ReactElement) => {
const highlighted = this.state.highlightedOption === child.key;
return (
<MenuOption