1- import React from 'react' ;
1+ import * as React from 'react' ;
22import PropTypes from 'prop-types' ;
3+ import Border from '../components/Border' ;
34import Textarea from '../components/Textarea' ;
4- import ButtonText from '../components/ButtonText ' ;
5+ import Button from '../components/Button ' ;
56import * as Actions from '../common/actions' ;
7+ import * as Text from '../components/Text' ;
68import { connect } from 'react-redux' ;
7- import { DeleteIcon } from '../common/svg' ;
89
9- class CommentList extends React . Component {
10+ class CommentForm extends React . Component {
1011 static defaultProps = {
1112 postId : PropTypes . string ,
1213 commentId : PropTypes . string ,
@@ -38,11 +39,11 @@ class CommentList extends React.Component {
3839 render ( ) {
3940 return (
4041 < div >
41- < header >
42- < div > { this . props . title } </ div >
42+ < header style = { { margin : '16px 0 16px 0' } } >
43+ < Text . PageTitle > { this . props . title } </ Text . PageTitle >
4344 < div >
4445 { this . props . isReplying ? (
45- < DeleteIcon interactionStyle onClick = { this . props . onCancel } / >
46+ < Button onClick = { this . props . onCancel } > Cancel </ Button >
4647 ) : (
4748 undefined
4849 ) }
@@ -54,15 +55,16 @@ class CommentList extends React.Component {
5455 label = "comment"
5556 placeholder = { this . props . placeholder }
5657 value = { this . state . content }
58+ fontSize = "16px"
5759 onChange = { this . _handleContentChange }
5860 />
5961 < div >
60- < ButtonText onClick = { this . _handleSend } > Submit</ ButtonText >
62+ < Button onClick = { this . _handleSend } > Submit</ Button >
6163 </ div >
6264 </ div >
6365 </ div >
6466 ) ;
6567 }
6668}
6769
68- export default connect ( state => state ) ( CommentList ) ;
70+ export default connect ( state => state ) ( CommentForm ) ;
0 commit comments