appbaseio/dejaVu

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

Summary

Maintainability
A
0 mins
Test Coverage
import { UPDATING_ROW } from '../actions/constants';

const updatingRow = (state = null, action) => {
    switch (action.type) {
        case UPDATING_ROW.SET_UPDATING_ROW:
            return action.rowData;
        default:
            return state;
    }
};

const getUpdatingRow = state => state.updatingRow;

export { getUpdatingRow };

export default updatingRow;