import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import moment from 'moment'; import { Link } from 'react-router'; import Nav from '../../../components/Nav'; import * as SketchActions from '../actions'; import * as ProjectActions from '../../IDE/actions/project'; class SketchListView extends React.Component { componentDidMount() { this.props.getProjects(); } render() { return (
Name | Created | Last Updated | {this.props.sketches.map(sketch =>
---|---|---|
{sketch.name} | {moment(sketch.createdAt).format('MMM D, YYYY')} | {moment(sketch.updatedAt).format('MMM D, YYYY')} |