Unverified Commit 4435408c authored by kyleplo's avatar kyleplo Committed by GitHub

Revert "Add mode"

parent 86befd1e
const keyMirror = require('keymirror'); const keyMirror = require('keymirror');
const Types = keyMirror({ const Types = keyMirror({
SET_MODE: null,
SET_SEARCH_TERM: null SET_SEARCH_TERM: null
}); });
...@@ -10,8 +9,6 @@ module.exports.navigationReducer = (state, action) => { ...@@ -10,8 +9,6 @@ module.exports.navigationReducer = (state, action) => {
state = ''; state = '';
} }
switch (action.type) { switch (action.type) {
case Types.SET_MODE:
return action.mode;
case Types.SET_SEARCH_TERM: case Types.SET_SEARCH_TERM:
return action.searchTerm; return action.searchTerm;
default: default:
...@@ -19,11 +16,6 @@ module.exports.navigationReducer = (state, action) => { ...@@ -19,11 +16,6 @@ module.exports.navigationReducer = (state, action) => {
} }
}; };
module.exports.setMode = mode => ({
type: Types.SET_MODE,
mode: mode
});
module.exports.setSearchTerm = searchTerm => ({ module.exports.setSearchTerm = searchTerm => ({
type: Types.SET_SEARCH_TERM, type: Types.SET_SEARCH_TERM,
searchTerm: searchTerm searchTerm: searchTerm
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment