From a33a1c47ab5e543f521c77263efa7a2c4d8fbf44 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Fri, 7 Sep 2018 16:29:46 +0200 Subject: [PATCH] Disable submit button when empty --- .../stream/components/PostCommentForm.tsx | 4 ++-- .../stream/components/ReplyCommentForm.tsx | 4 ++-- .../__snapshots__/postComment.spec.tsx.snap | 8 ++++---- .../__snapshots__/postReply.spec.tsx.snap | 20 +++++++++---------- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/core/client/stream/components/PostCommentForm.tsx b/src/core/client/stream/components/PostCommentForm.tsx index 09d4a1ba6..3a9caa81d 100644 --- a/src/core/client/stream/components/PostCommentForm.tsx +++ b/src/core/client/stream/components/PostCommentForm.tsx @@ -29,7 +29,7 @@ export interface PostCommentFormProps { const PostCommentForm: StatelessComponent = props => (
- {({ handleSubmit, submitting }) => ( + {({ handleSubmit, submitting, hasValidationErrors }) => ( = props => (