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.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/react/components/presentational/Search.jsx b/src/client/react/components/presentational/Search.jsx
index 1e00192..a713db4 100644
--- a/src/client/react/components/presentational/Search.jsx
+++ b/src/client/react/components/presentational/Search.jsx
@@ -1,10 +1,10 @@
import React from 'react';
import PropTypes from 'prop-types';
-const Search = ({ onType, value, results }) => (
+const Search = ({ onInputChange, value, results }) => (
<div>
<input
- onChange={onType}
+ onChange={onInputChange}
value={value}
placeholder="Zoeken"
/>
@@ -15,7 +15,7 @@ const Search = ({ onType, value, results }) => (
);
Search.propTypes = {
- onType: PropTypes.func.isRequired,
+ onInputChange: PropTypes.func.isRequired,
value: PropTypes.string.isRequired,
results: PropTypes.arrayOf(PropTypes.shape({
name: PropTypes.string.require,