Fix some types
This commit is contained in:
parent
22a8b2896d
commit
80c57f0f10
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ import WeaponResult from '~components/WeaponResult/WeaponResult'
|
|||
import './SearchModal.css'
|
||||
|
||||
interface Props {
|
||||
close: OnClickEvent
|
||||
close: () => void
|
||||
send: (weapon: Weapon, position: number) => any
|
||||
placeholderText: string
|
||||
fromPosition: number
|
||||
|
|
@ -62,7 +62,7 @@ class SearchModal extends React.Component<Props, State> {
|
|||
})
|
||||
}
|
||||
|
||||
inputChanged = (event) => {
|
||||
inputChanged = (event: React.ChangeEvent<HTMLInputElement>) => {
|
||||
const query = event.target.value
|
||||
if (query.length) {
|
||||
this.setState({ query, loading: true, message: '' }, () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue