From 2e87ccd3bb73872182a91ea701bbf4687307e6e1 Mon Sep 17 00:00:00 2001 From: stephen grider Date: Sun, 24 Jan 2016 15:50:42 -0800 Subject: [PATCH] show validation errors --- blog/src/components/posts_new.js | 21 ++++++++++++++++++--- blog/style/style.css | 3 +++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/blog/src/components/posts_new.js b/blog/src/components/posts_new.js index ce706182..246b6c72 100644 --- a/blog/src/components/posts_new.js +++ b/blog/src/components/posts_new.js @@ -1,6 +1,7 @@ import React, { Component } from 'react'; import { reduxForm } from 'redux-form'; import { createPost } from '../actions/index'; +import { Link } from 'react-router'; class PostsNew extends Component { render() { @@ -9,7 +10,8 @@ class PostsNew extends Component { return (

Create A New Post

-
+ +
@@ -17,17 +19,24 @@ class PostsNew extends Component {
-
+
+
+ {categories.touched ? categories.error : ''} +
-
+