browserHistory.push(`/${username}/sketches/${sketch.id}`)}
- >
-
- {(() => { // eslint-disable-line
- if (this.props.username === this.props.user.username || this.props.username === undefined) {
- return (
-
- );
- }
- })()}
- |
- {sketch.name} |
- {moment(sketch.createdAt).format('MMM D, YYYY h:mm A')} |
- {moment(sketch.updatedAt).format('MMM D, YYYY h:mm A')} |
+ { this.props.sketches.length === 0 &&
+ No sketches.
+ }
+ { this.props.sketches.length > 0 &&
+
+
+
+ |
+ Sketch |
+ Date created |
+ Date updated |
- )}
-
-
+
+