Skip to content
Snippets Groups Projects
Commit 0e2a74aa authored by Dan Notestein's avatar Dan Notestein
Browse files

Merge branch 'fix-duplicate-ids' into 'develop'

Fix transactions filters

See merge request !151
parents 6b4e498a b65382ad
No related branches found
No related tags found
2 merge requests!153Maintenance updates,!151Fix transactions filters
...@@ -8,6 +8,7 @@ class Filters extends React.Component { ...@@ -8,6 +8,7 @@ class Filters extends React.Component {
showFilters: false, showFilters: false,
}; };
} }
render() { render() {
const { const {
handleIncoming, handleIncoming,
...@@ -20,13 +21,16 @@ class Filters extends React.Component { ...@@ -20,13 +21,16 @@ class Filters extends React.Component {
} = this.props; } = this.props;
const handleShowFilters = () => { const handleShowFilters = () => {
this.setState({ showFilters: !this.state.showFilters }); this.setState((prevState) => ({
showFilters: !prevState.showFilters,
}));
}; };
return ( return (
<div className="row"> <div className="row">
<div className="column small-12"> <div className="column small-12">
<button <button
type="button"
onClick={handleShowFilters} onClick={handleShowFilters}
className={ className={
this.state.showFilters === true this.state.showFilters === true
...@@ -79,10 +83,10 @@ class Filters extends React.Component { ...@@ -79,10 +83,10 @@ class Filters extends React.Component {
<input <input
onChange={handleFromUser} onChange={handleFromUser}
type="checkbox" type="checkbox"
id="outgoing" id="from-user"
name="outgoing" name="from-user"
/> />
<label htmlFor="outgoing"> <label htmlFor="from-user">
Received from Received from
</label> </label>
</div> </div>
...@@ -90,10 +94,10 @@ class Filters extends React.Component { ...@@ -90,10 +94,10 @@ class Filters extends React.Component {
<input <input
onChange={handleToUser} onChange={handleToUser}
type="checkbox" type="checkbox"
id="outgoing" id="to-user"
name="outgoing" name="to-user"
/> />
<label htmlFor="outgoing"> <label htmlFor="to-user">
Transfer to Transfer to
</label> </label>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment