From bc4fa6b198557a7f3989eb0865e2c77ac7451d29 Mon Sep 17 00:00:00 2001 From: kibigo! Date: Sun, 3 Dec 2017 23:26:40 -0800 Subject: Rename themes -> flavours ? ? --- .../themes/glitch/components/status_prepend.js | 83 ---------------------- 1 file changed, 83 deletions(-) delete mode 100644 app/javascript/themes/glitch/components/status_prepend.js (limited to 'app/javascript/themes/glitch/components/status_prepend.js') diff --git a/app/javascript/themes/glitch/components/status_prepend.js b/app/javascript/themes/glitch/components/status_prepend.js deleted file mode 100644 index bd2559e46..000000000 --- a/app/javascript/themes/glitch/components/status_prepend.js +++ /dev/null @@ -1,83 +0,0 @@ -// Package imports // -import React from 'react'; -import PropTypes from 'prop-types'; -import ImmutablePropTypes from 'react-immutable-proptypes'; -import { FormattedMessage } from 'react-intl'; - -export default class StatusPrepend extends React.PureComponent { - - static propTypes = { - type: PropTypes.string.isRequired, - account: ImmutablePropTypes.map.isRequired, - parseClick: PropTypes.func.isRequired, - notificationId: PropTypes.number, - }; - - handleClick = (e) => { - const { account, parseClick } = this.props; - parseClick(e, `/accounts/${+account.get('id')}`); - } - - Message = () => { - const { type, account } = this.props; - let link = ( - - - - ); - switch (type) { - case 'reblogged_by': - return ( - - ); - case 'favourite': - return ( - - ); - case 'reblog': - return ( - - ); - } - return null; - } - - render () { - const { Message } = this; - const { type } = this.props; - - return !type ? null : ( - - ); - } - -} -- cgit