appbaseio/dejaVu

View on GitHub
packages/browser/src/reducers/selectAll.js

Summary

Maintainability
A
1 hr
Test Coverage
import { SELECT_ALL } from '../actions/constants';

const selectAllReducer = (state = false, action) => {
    const { selectAll } = action;
    switch (action.type) {
        case SELECT_ALL.SET_SELECT_ALL:
            return selectAll;
        default:
            return state;
    }
};

const getSelectAll = state => state.selectAll;

export { getSelectAll };

export default selectAllReducer;