Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
remove console.logs, simplify operations file
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcheng924 committed Jun 26, 2018
1 parent bca1d6b commit 746439e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 3 additions & 9 deletions re-ducks-todos/src/state/ducks/todos/operations.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
import actions from "./actions";

const addTodo = text => {
return actions.addTodo(text);
};
const addTodo = actions.addTodo;

const setVisibilityFilter = filter => {
return actions.setVisibilityFilter(filter);
};
const setVisibilityFilter = actions.setVisibilityFilter;

const toggleTodo = id => {
return actions.toggleTodo(id);
};
const toggleTodo = actions.toggleTodo;

export default {
addTodo,
Expand Down
2 changes: 0 additions & 2 deletions re-ducks-todos/src/state/ducks/todos/selectors.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import CONSTANTS from "./constants";

const getVisibleTodos = (todos, filter) => {
console.log(todos);
console.log(filter);
switch (filter) {
case CONSTANTS.SHOW_ALL:
return todos;
Expand Down

0 comments on commit 746439e

Please sign in to comment.