From 2e21c04e28f4384b03200cc1577b5517b683374c Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 2 Aug 2020 20:50:06 -0500 Subject: [PATCH] Clean up unused UserPanel code --- app/soapbox/features/ui/components/user_panel.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/app/soapbox/features/ui/components/user_panel.js b/app/soapbox/features/ui/components/user_panel.js index dd7fb0d88..735830622 100644 --- a/app/soapbox/features/ui/components/user_panel.js +++ b/app/soapbox/features/ui/components/user_panel.js @@ -10,7 +10,6 @@ import Avatar from 'soapbox/components/avatar'; import { shortNumberFormat } from 'soapbox/utils/numbers'; import { acctFull } from 'soapbox/utils/accounts'; import StillImage from 'soapbox/components/still_image'; -import classNames from 'classnames'; class UserPanel extends ImmutablePureComponent { @@ -18,21 +17,16 @@ class UserPanel extends ImmutablePureComponent { account: ImmutablePropTypes.map, intl: PropTypes.object.isRequired, domain: PropTypes.string, - style: PropTypes.object, - } - - static defaultProps = { - style: {}, } render() { - const { account, intl, domain, style } = this.props; + const { account, intl, domain } = this.props; if (!account) return null; const displayNameHtml = { __html: account.get('display_name_html') }; const acct = account.get('acct').indexOf('@') === -1 && domain ? `${account.get('acct')}@${domain}` : account.get('acct'); return ( -
+