Add search component to overview

This commit is contained in:
Tom Raithel
2017-03-01 23:31:25 +01:00
parent a92aeac253
commit 1e703d8746
3 changed files with 97 additions and 15 deletions

11
js/components/Search.js Normal file
View File

@@ -0,0 +1,11 @@
import React from 'react';
import classNames from 'classnames';
export default function Search({ value, onChange }) {
return (
<div className="search">
<input value={value} type="text" onChange={(e) => { onChange(e.target.value); }} className="search__field" placeholder="Search" />
<span className="icon icon--search search__icon" />
</div>
);
}