diff --git a/client/blocks/comments/form.jsx b/client/blocks/comments/form.jsx index 69293a4c183a..4f18a581e763 100644 --- a/client/blocks/comments/form.jsx +++ b/client/blocks/comments/form.jsx @@ -1,11 +1,12 @@ +import './form.scss'; import { Button, FormInputValidation } from '@automattic/components'; import clsx from 'clsx'; import { localize, useTranslate } from 'i18n-calypso'; import PropTypes from 'prop-types'; import { Component } from 'react'; import { connect } from 'react-redux'; +import UserAvatar from 'calypso/blocks/user-avatar'; import FormFieldset from 'calypso/components/forms/form-fieldset'; -import GravatarWithHovercards from 'calypso/components/gravatar-with-hovercards'; import { ProtectFormGuard } from 'calypso/lib/protect-form'; import { recordAction, recordGaEvent, recordTrackForPost, getLocation } from 'calypso/reader/stats'; import { writeComment, deleteComment, replyComment } from 'calypso/state/comments/actions'; @@ -15,8 +16,6 @@ import { getCurrentRoute } from 'calypso/state/selectors/get-current-route'; import { getPreviousPath } from 'calypso/state/selectors/get-previous-path'; import AutoresizingFormTextarea from './autoresizing-form-textarea'; -import './form.scss'; - const noop = () => {}; function PostCommentFormError( { type } ) { @@ -149,7 +148,7 @@ class PostCommentForm extends Component { } render() { - const { post, error, errorType, translate } = this.props; + const { post, error, errorType, translate, currentUser } = this.props; // Don't display the form if comments are closed if ( post && post.discussion && post.discussion.comments_open === false ) { @@ -174,7 +173,13 @@ class PostCommentForm extends Component {