aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/components/presentational
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/react/components/presentational')
-rw-r--r--src/client/react/components/presentational/Search.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/react/components/presentational/Search.js b/src/client/react/components/presentational/Search.js
index ce4a09d..f75e612 100644
--- a/src/client/react/components/presentational/Search.js
+++ b/src/client/react/components/presentational/Search.js
@@ -1,10 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
-const Search = ({ onType, results }) => (
+const Search = ({ onType, value, results }) => (
<div>
<input
onChange={onType}
+ value={value}
placeholder="Zoeken"
/>
<ul>
@@ -15,6 +16,7 @@ const Search = ({ onType, results }) => (
Search.propTypes = {
onType: PropTypes.func.isRequired,
+ value: PropTypes.func.isRequired,
results: PropTypes.arrayOf(PropTypes.shape({
name: PropTypes.string.require,
type: PropTypes.string.require,