diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-01-04 23:37:34 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-01-04 23:37:34 +0100 |
| commit | 276c16e1055c23350abd3d9d071cfce9b4f1b27f (patch) | |
| tree | b85c3b3c8ff0f7bfb77323d3f77be0f88bb3086f /client/nameSearch/nameSearch.query.js | |
| parent | e5b6ef658e936c32d9500ff7f781171d9785315a (diff) | |
rm rotation on homepage, add dataset list
Diffstat (limited to 'client/nameSearch/nameSearch.query.js')
| -rw-r--r-- | client/nameSearch/nameSearch.query.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/nameSearch/nameSearch.query.js b/client/nameSearch/nameSearch.query.js index b82e324b..629b7b1d 100644 --- a/client/nameSearch/nameSearch.query.js +++ b/client/nameSearch/nameSearch.query.js @@ -11,22 +11,22 @@ class NameSearchQuery extends Component { handleInput(value) { this.setState({ q: value }) - if (value.length > 2) { - this.props.actions.search(this.props.payload, value) + if (value.strip().length > 1) { + this.props.actions.search(this.props.payload, value.strip()) } } render() { return ( <div className='query'> - <h2>Find Your Name</h2> + <h2>Search by Name</h2> <h3>Searching {13456} identities</h3> <p> {'Enter your name to see if you were included in this dataset..'} </p> <input type="text" - class="q" + className="q" placeholder="Enter your name" value={this.state.q} onInput={e => this.handleInput(e.target.value)} |
