From 190d09f3f3e62815a628f5c0359286b8967a358d Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Thu, 20 Aug 2020 15:13:14 -0500 Subject: [PATCH] Removed unused StatusReplyIndicator component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Removed: - unused StatusReplyIndicator component --- .../components/status_reply_indicator.js | 66 ------------------- 1 file changed, 66 deletions(-) delete mode 100644 app/javascript/gabsocial/components/status_reply_indicator.js diff --git a/app/javascript/gabsocial/components/status_reply_indicator.js b/app/javascript/gabsocial/components/status_reply_indicator.js deleted file mode 100644 index 374abf35..00000000 --- a/app/javascript/gabsocial/components/status_reply_indicator.js +++ /dev/null @@ -1,66 +0,0 @@ -import React from 'react' -import PropTypes from 'prop-types' -import ImmutablePropTypes from 'react-immutable-proptypes'; -import ImmutablePureComponent from 'react-immutable-pure-component'; -import { defineMessages, injectIntl } from 'react-intl'; -import { NavLink } from 'react-router-dom'; -import Avatar from '../../../../components/avatar'; -import Button from '../../../../components/button'; -import DisplayName from '../../../../components/display_name'; -import { isRtl } from '../../../../utils/rtl'; - -class ReplyIndicator extends ImmutablePureComponent { - - static contextTypes = { - router: PropTypes.object, - } - - handleClick = () => { - this.props.onCancel(); - } - - render () { - const { status, intl } = this.props; - - if (!status) { - return null; - } - - const content = { __html: status.get('contentHtml') }; - const style = { - direction: isRtl(status.get('search_index')) ? 'rtl' : 'ltr', - }; - - return ( -
-
-
-
- - -
- -
- -
-
- -
-
- ); - } - -} - -const messages = defineMessages({ - cancel: { id: 'reply_indicator.cancel', defaultMessage: 'Cancel' }, -}) - -ReplyIndicator.propTypes = { - status: ImmutablePropTypes.map, - onCancel: PropTypes.func.isRequired, - intl: PropTypes.object.isRequired, -} - -export default injectIntl(ReplyIndicator) \ No newline at end of file