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 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
|
||||||
|
|
Loading…
Reference in a new issue