How to use the terra-modal-manager/lib/shared/disclosureReducerUtils.maximize function in terra-modal-manager

To help you get started, we’ve selected a few terra-modal-manager examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cerner / terra-clinical / packages / terra-clinical-application-site / src / demo / panel-manager / reducers.js View on Github external
const panelManager = (state = defaultPanelState, action) => {
  switch (action.type) {
    case OPEN:
      return Object.assign({}, open(state, action), {
        size: action.data.size || supportedSizes.small,
        behavior: action.data.behavior || supportedBehaviors.squish,
      });
    case CLOSE:
      return defaultPanelState;
    case PUSH:
      return push(state, action);
    case POP:
      return pop(state, action);
    case MAXIMIZE:
      return maximize(state, action);
    case MINIMIZE:
      return minimize(state, action);
    default:
      return state;
  }
};