Merge pull request #47 from chaoticbackup/gbateman/extra-search-and-reset

Added search and reset buttons to the top of the search form
This commit is contained in:
Daniel 2019-07-17 13:34:04 -04:00 committed by GitHub
commit 3c2f2cd0cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,6 +220,11 @@ export default class SearchCollection extends React.Component {
<form onSubmit={this.search}>
<label className="searchName">Search</label>
<br />
<div className="centeredButtons">
<input id="search" type="submit" value="Search" />
<input id="search" type="button" value="Reset" onClick={this.reset} />
</div>
<br />
<div className="text-entry">
<input type="text" name="name" placeholder="Card Name" value={this.input.name} onChange={this.handleChange} />
</div>