This commit is contained in:
Colin Megill
2021-07-23 13:29:27 -07:00
parent e29a6f72c2
commit bb5bbaac8a
3 changed files with 38 additions and 9 deletions
+24
View File
@@ -0,0 +1,24 @@
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;