@@ -13,12 +13,12 @@ const CommentForm = React.createClass({
1313 propTypes : {
1414 url : React . PropTypes . string . isRequired ,
1515 formData : React . PropTypes . object . isRequired ,
16- ajaxSending : React . PropTypes . bool . isRequired
16+ ajaxSending : React . PropTypes . bool . isRequired ,
1717 } ,
1818
1919 getInitialState ( ) {
2020 return {
21- formMode : 0
21+ formMode : 0 ,
2222 } ;
2323 } ,
2424
@@ -34,14 +34,14 @@ const CommentForm = React.createClass({
3434 if ( this . state . formMode < 2 ) {
3535 obj = {
3636 author : this . refs . author . getValue ( ) ,
37- text : this . refs . text . getValue ( )
37+ text : this . refs . text . getValue ( ) ,
3838 } ;
3939 } else {
4040 obj = {
4141 // This is different because the input is a native HTML element
4242 // rather than a React element.
4343 author : this . refs . inlineAuthor . getDOMNode ( ) . value ,
44- text : this . refs . inlineText . getDOMNode ( ) . value
44+ text : this . refs . inlineText . getDOMNode ( ) . value ,
4545 } ;
4646 }
4747
@@ -145,15 +145,15 @@ const CommentForm = React.createClass({
145145 }
146146 return (
147147 < div >
148- < Nav bsStyle = " pills" activeKey = { this . state . formMode } onSelect = { this . handleSelect } >
148+ < Nav bsStyle = ' pills' activeKey = { this . state . formMode } onSelect = { this . handleSelect } >
149149 < NavItem eventKey = { 0 } > Horizontal Form</ NavItem >
150150 < NavItem eventKey = { 1 } > Stacked Form</ NavItem >
151151 < NavItem eventKey = { 2 } > Inline Form</ NavItem >
152152 </ Nav >
153153 { inputForm }
154154 </ div >
155155 ) ;
156- }
156+ } ,
157157} ) ;
158158
159159export default CommentForm ;
0 commit comments