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:
parent
15e6693520
commit
a0d73579b9
@ -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>) => {
|
||||
|
Loading…
Reference in New Issue
Block a user