AppSaloon/socket.io-tester

View on GitHub
src/app/js/reducers/colorPicker.js

Summary

Maintainability
A
0 mins
Test Coverage
const defaultState = {
    visible: false,
    top: 0
}

export default function colorPicker (state = defaultState, action) {
    switch (action.type) {

        case 'UPDATE_COLORPICKER':
        return {
            ...state,
            ...action.state
        }

        default:
        return state
    }
}