aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/reducers
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-12-10 13:25:46 +0100
committerNoah Loomans <noahloomans@gmail.com>2017-12-10 13:25:46 +0100
commit9f6a36d1f1a16c1a777a23fcc8c986c45ee0a116 (patch)
treee79ccfcb2d8d07dd18b9fe202c227b350c51a94a /src/client/react/reducers
parentedaa91d05e753e3609c00068f565b88c4ef77e62 (diff)
Add some basic styling
Diffstat (limited to 'src/client/react/reducers')
-rw-r--r--src/client/react/reducers/search.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/react/reducers/search.js b/src/client/react/reducers/search.js
index 08be519..a695184 100644
--- a/src/client/react/reducers/search.js
+++ b/src/client/react/reducers/search.js
@@ -1,6 +1,7 @@
const DEFAULT_STATE = {
searchInput: '',
searchResults: [],
+ hasFocus: false,
};
const search = (state = DEFAULT_STATE, action) => {
@@ -13,6 +14,11 @@ const search = (state = DEFAULT_STATE, action) => {
{ type: 's', name: '18561' },
],
};
+ case 'SEARCH/FOCUS_CHANGE':
+ return {
+ ...state,
+ hasFocus: action.hasFocus,
+ };
default:
return state;
}