ManageIQ/manageiq-ui-classic

View on GitHub
app/javascript/miq-redux/miq-custom-tab-reducer.js

Summary

Maintainability
A
0 mins
Test Coverage
const miqCustomTabReducer = (clickCount = 0, action) => {
  switch (action.type) {
    case 'INCREMENT_CLICK_COUNT':
      return clickCount + 1;
    default:
      return clickCount;
  }
};

export default miqCustomTabReducer;