Fix some types

This commit is contained in:
Justin Edmund 2020-09-18 06:26:20 -07:00
parent 22a8b2896d
commit 80c57f0f10

View file

@ -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: '' }, () => {