mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-30 10:58:23 -05:00
Revert "Add mode"
This commit is contained in:
parent
86befd1e31
commit
4435408cdc
1 changed files with 0 additions and 8 deletions
|
@ -1,7 +1,6 @@
|
|||
const keyMirror = require('keymirror');
|
||||
|
||||
const Types = keyMirror({
|
||||
SET_MODE: null,
|
||||
SET_SEARCH_TERM: null
|
||||
});
|
||||
|
||||
|
@ -10,8 +9,6 @@ module.exports.navigationReducer = (state, action) => {
|
|||
state = '';
|
||||
}
|
||||
switch (action.type) {
|
||||
case Types.SET_MODE:
|
||||
return action.mode;
|
||||
case Types.SET_SEARCH_TERM:
|
||||
return action.searchTerm;
|
||||
default:
|
||||
|
@ -19,11 +16,6 @@ module.exports.navigationReducer = (state, action) => {
|
|||
}
|
||||
};
|
||||
|
||||
module.exports.setMode = mode => ({
|
||||
type: Types.SET_MODE,
|
||||
mode: mode
|
||||
});
|
||||
|
||||
module.exports.setSearchTerm = searchTerm => ({
|
||||
type: Types.SET_SEARCH_TERM,
|
||||
searchTerm: searchTerm
|
||||
|
|
Loading…
Reference in a new issue