viddo/atom-textual-velocity

View on GitHub
lib/react/containers/Row.js

Summary

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

import { connect } from "react-redux";
import * as A from "../../actions";
import Row from "../presentationals/Row";

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

const mapDispatchToProps = (dispatch: Dispatch<Action>) => {
  return {
    onClick: row => {
      dispatch(A.selectNote(row.filename));
    }
  };
};

export default connect(null, mapDispatchToProps)(Row);