Revert "Add mode"

This commit is contained in:
kyleplo 2018-08-22 07:57:19 -04:00 committed by GitHub
parent 86befd1e31
commit 4435408cdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,6 @@
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) => {
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) => {
} }
}; };
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