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'
|
import styles from './Home.module.scss'
|
||||||
|
|
||||||
interface IState {
|
interface IState {
|
||||||
search: string
|
search?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
@ -31,9 +31,9 @@ class Home extends Component<IProps, IState> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private inputChange = (event: ChangeEvent<HTMLInputElement>) => {
|
private inputChange = (event: ChangeEvent<HTMLInputElement>) => {
|
||||||
this.setState(state => ({
|
this.setState({
|
||||||
search: event.target.value
|
[event.target.name]: event.target.value
|
||||||
}))
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
private searchAssets = (event: FormEvent<HTMLFormElement>) => {
|
private searchAssets = (event: FormEvent<HTMLFormElement>) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user