message: Withdraw: fix codestyle
diff: @@ -5,7 +5,7 @@ import styles from './Comment.scss'
  import { FormattedMessage } from 'react-intl'
  import actions from 'redux/actions'
  -//comment
  +
  interface IWithdrawModalProps {
  commentKey?: any,
  @@ -25,10 +25,8 @@ interface IWithdrawModalState {
  @CSSModules(styles, { allowMultiple: true })
  -
  export default class CommentRow extends React.PureComponent<any, any> {
  -
  props: IWithdrawModalProps
  state: IWithdrawModalState
  @@ -39,32 +37,31 @@ export default class CommentRow extends React.PureComponent<any, any> {
  this.commentTextarea = React.createRef()
  this.state = {
  isOpen: false,
  - comment: null
  + comment: null,
  }
  }
  submitComment = (e, props) => {
  -
  if (e) {
  e.preventDefault()
  }
  +
  const {
  commentKey,
  - updateComment = false
  + updateComment = false,
  } = this.props
  const {
  comment
  } = this.state
  -
  actions.comments.setComment({
  key: commentKey,
  comment: comment
  })
  if (updateComment) {
  - updateComment(comment);
  + updateComment(comment)
  }
  const {
  @@ -76,8 +73,8 @@ export default class CommentRow extends React.PureComponent<any, any> {
  this.toggleComment()
  }
  - componentDidMount() {
  + componentDidMount() {
  const {
  commentKey
  } = this.props
  @@ -91,23 +88,20 @@ export default class CommentRow extends React.PureComponent<any, any> {
  comment
  })
  }
  -
  }
  - componentDidUpdate(prevProps) {
  + componentDidUpdate(prevProps) {
  if (this.props.isOpen && this.props.isOpen !== prevProps.isOpen && this.props.onSubmit) {
  - this.handleKeyUp();
  + this.handleKeyUp()
  }
  }
  handleKeyUp = (e = null) => {
  if (!this.commentTextarea) {
  -
  return
  }
  if (e && e.ctrlKey && e.keyCode == 13) {
  -
  this.submitComment(null, this.props)
  return
  }
  @@ -120,7 +114,10 @@ export default class CommentRow extends React.PureComponent<any, any> {
  toggleComment = () => {
  const { isOpen = false } = this.state
  - this.setState({isOpen: !isOpen})
  +
  + this.setState({
  + isOpen: !isOpen
  + })
  }
  render() {
  @@ -131,7 +128,10 @@ export default class CommentRow extends React.PureComponent<any, any> {
  showComment = false,
  } = this.props
  - const { isOpen = false, comment = null } = this.state
  + const {
  + isOpen = false,
  + comment = null
  + } = this.state
  return (
  <div styleName="wrap-block">
  @@ -161,6 +161,7 @@ export default class CommentRow extends React.PureComponent<any, any> {
  }
  </div>
  )}
  - </div>)
  + </div>
  + )
  }
  }
  