mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 15:38:11 +08:00
mock reducer
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
Reducers for geneset UI-state.
|
||||
*/
|
||||
const GeneSets = (
|
||||
state = {
|
||||
addGenesetModeActive: false,
|
||||
isEditingGenesetName: false,
|
||||
genesetAddingNewGenes: null,
|
||||
},
|
||||
action
|
||||
) => {
|
||||
switch (action.type) {
|
||||
case "geneset: activate add new geneset mode": {
|
||||
return {
|
||||
...state,
|
||||
addGenesetModeActive: true,
|
||||
};
|
||||
}
|
||||
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
|
||||
export default GeneSets;
|
||||
@@ -14,6 +14,7 @@ import differential from "./differential";
|
||||
import layoutChoice from "./layoutChoice";
|
||||
import controls from "./controls";
|
||||
import annotations from "./annotations";
|
||||
import genesets from "./genesets";
|
||||
import autosave from "./autosave";
|
||||
import ontology from "./ontology";
|
||||
import centroidLabels from "./centroidLabels";
|
||||
@@ -30,6 +31,7 @@ const Reducer = undoable(
|
||||
["obsCrossfilter", obsCrossfilter],
|
||||
["ontology", ontology],
|
||||
["annotations", annotations],
|
||||
["genesets", genesets],
|
||||
["layoutChoice", layoutChoice],
|
||||
["categoricalSelection", categoricalSelection],
|
||||
["continuousSelection", continuousSelection],
|
||||
|
||||
Reference in New Issue
Block a user