From 3f77144a53205599dc990f4af28565b158df2473 Mon Sep 17 00:00:00 2001 From: SleepWalker Date: Sat, 18 Jun 2016 14:23:30 +0300 Subject: [PATCH] #145: add success state for feedback form --- src/components/contact/ContactForm.jsx | 114 ++++++++++++++----------- 1 file changed, 63 insertions(+), 51 deletions(-) diff --git a/src/components/contact/ContactForm.jsx b/src/components/contact/ContactForm.jsx index 430d731..0a6c766 100644 --- a/src/components/contact/ContactForm.jsx +++ b/src/components/contact/ContactForm.jsx @@ -33,8 +33,8 @@ class ContactForm extends Component { form = new FormModel(); render() { - const {onClose, user} = this.props; - const {form} = this; + const {isSuccessfullySent = false} = this.state || {}; + const {onClose} = this.props; return (
@@ -46,62 +46,74 @@ class ContactForm extends Component {
-
-
-
- -
- -
-
-
- -
-
- -
- -
- -
-
- -
- -
- -