import { FormattedMessage } from 'react-intl'; import { withRouter } from 'react-router-dom'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import TripIcon from '@/material-icons/400-24px/trip.svg?react'; import { Icon } from 'flavours/glitch/components/icon'; import { WithRouterPropTypes } from 'flavours/glitch/utils/react_router'; import { AvatarOverlay } from '../../../components/avatar_overlay'; import { DisplayName } from '../../../components/display_name'; class MovedNote extends ImmutablePureComponent { static propTypes = { from: ImmutablePropTypes.map.isRequired, to: ImmutablePropTypes.map.isRequired, ...WithRouterPropTypes, }; handleAccountClick = e => { if (e.button === 0) { e.preventDefault(); this.props.history.push(`/@${this.props.to.get('acct')}`); } e.stopPropagation(); }; render () { const { from, to } = this.props; const displayNameHtml = { __html: from.get('display_name_html') }; return (
}} />
); } } export default withRouter(MovedNote);