From bb5b3629445ed6a52c3a088dbc2dd08b7a326f8a Mon Sep 17 00:00:00 2001
From: Noah Loomans <noahloomans@gmail.com>
Date: Thu, 14 Dec 2017 16:24:10 +0100
Subject: Remove input value from redux

---
 src/client/react/components/container/Search.jsx | 4 ----
 1 file changed, 4 deletions(-)

(limited to 'src/client/react/components/container/Search.jsx')

diff --git a/src/client/react/components/container/Search.jsx b/src/client/react/components/container/Search.jsx
index babe0c4..e49e6a7 100644
--- a/src/client/react/components/container/Search.jsx
+++ b/src/client/react/components/container/Search.jsx
@@ -54,7 +54,6 @@ class Search extends React.Component {
 
   render() {
     const {
-      value,
       selectedResult,
       isExactMatch,
       dispatch,
@@ -77,7 +76,6 @@ class Search extends React.Component {
             id="search__input"
             onChange={event => dispatch(inputChange(event.target.value))}
             onKeyDown={this.onKeyDown}
-            value={value}
             placeholder="Zoeken"
             onFocus={this.onFocus}
             onBlur={this.onBlur}
@@ -90,7 +88,6 @@ class Search extends React.Component {
 }
 
 Search.propTypes = {
-  value: PropTypes.string.isRequired,
   selectedResult: PropTypes.string,
   isExactMatch: PropTypes.bool.isRequired,
   dispatch: PropTypes.func.isRequired,
@@ -102,7 +99,6 @@ Search.defaultProps = {
 
 const mapStateToProps = state => ({
   results: state.search.results,
-  value: state.search.input,
   selectedResult: state.search.selectedResult,
   isExactMatch: state.search.isExactMatch,
 });
-- 
cgit v1.1

