1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

fix search input on Home

This commit is contained in:
Jernej Pregelj 2019-01-31 17:15:16 +01:00
parent 15e6693520
commit a0d73579b9

View File

@ -3,7 +3,7 @@ import Button from '../components/atoms/Button'
import styles from './Home.module.scss'
interface IState {
search: string
search?: string
}
interface IProps {
@ -31,9 +31,9 @@ class Home extends Component<IProps, IState> {
}
private inputChange = (event: ChangeEvent<HTMLInputElement>) => {
this.setState(state => ({
search: event.target.value
}))
this.setState({
[event.target.name]: event.target.value
})
}
private searchAssets = (event: FormEvent<HTMLFormElement>) => {