viddo/atom-textual-velocity

View on GitHub
lib/reducers/rowHeightReducer.js

Summary

Maintainability
A
0 mins
Test Coverage
/* @flow */

import * as A from "../actions";

import type { Action } from "../actions";

export default function rowHeightReducer(state: number = 25, action: Action) {
  switch (action.type) {
    case A.CHANGED_ROW_HEIGHT:
      return action.rowHeight;

    default:
      return state;
  }
}