about summary refs log tree commit diff
path: root/app/javascript/mastodon/components/inline_account.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/mastodon/components/inline_account.js')
-rw-r--r--app/javascript/mastodon/components/inline_account.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/app/javascript/mastodon/components/inline_account.js b/app/javascript/mastodon/components/inline_account.js
deleted file mode 100644
index a1b495590..000000000
--- a/app/javascript/mastodon/components/inline_account.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React from 'react';
-import ImmutablePropTypes from 'react-immutable-proptypes';
-import { connect } from 'react-redux';
-import { makeGetAccount } from 'mastodon/selectors';
-import Avatar from 'mastodon/components/avatar';
-
-const makeMapStateToProps = () => {
-  const getAccount = makeGetAccount();
-
-  const mapStateToProps = (state, { accountId }) => ({
-    account: getAccount(state, accountId),
-  });
-
-  return mapStateToProps;
-};
-
-export default @connect(makeMapStateToProps)
-class InlineAccount extends React.PureComponent {
-
-  static propTypes = {
-    account: ImmutablePropTypes.map.isRequired,
-  };
-
-  render () {
-    const { account } = this.props;
-
-    return (
-      <span className='inline-account'>
-        <Avatar size={13} account={account} /> <strong>{account.get('username')}</strong>
-      </span>
-    );
-  }
-
-}