This repository has been archived by the owner on Dec 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0dd03f6
commit 4e8ab20
Showing
3 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React, { Component } from 'react'; | ||
|
||
class FiltersStatic extends Component { | ||
constructor(props) { | ||
super(props); | ||
} | ||
|
||
render() { | ||
const {data, clearFilters} = this.props; | ||
return ( | ||
<div className="filter-wrapper"> | ||
{data.map((item, index) => { | ||
return ( | ||
<div className="filter-wrapper" key={index}> | ||
<button | ||
className={ | ||
'btn btn-meta-disabled ' + | ||
'btn-distance btn-sm' | ||
} | ||
onClick={clearFilters} | ||
> | ||
<i | ||
className="meta-icon-trash" | ||
/> | ||
{item.caption} | ||
</button> | ||
</div>); | ||
}) | ||
} | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default FiltersStatic; |