mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-21 06:18:12 +08:00
25 lines
372 B
JavaScript
25 lines
372 B
JavaScript
const Dotplot = (
|
|
state = {
|
|
row: null,
|
|
column: null,
|
|
},
|
|
action
|
|
) => {
|
|
switch (action.type) {
|
|
case "set dotplot row":
|
|
return {
|
|
...state,
|
|
row: action.data,
|
|
};
|
|
case "set dotplot column":
|
|
return {
|
|
...state,
|
|
column: action.data,
|
|
};
|
|
default:
|
|
return state;
|
|
}
|
|
};
|
|
|
|
export default Dotplot;
|