kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Clean up unused UserPanel code
rodzic
24e7ce6e83
commit
2e21c04e28
|
@ -10,7 +10,6 @@ import Avatar from 'soapbox/components/avatar';
|
||||||
import { shortNumberFormat } from 'soapbox/utils/numbers';
|
import { shortNumberFormat } from 'soapbox/utils/numbers';
|
||||||
import { acctFull } from 'soapbox/utils/accounts';
|
import { acctFull } from 'soapbox/utils/accounts';
|
||||||
import StillImage from 'soapbox/components/still_image';
|
import StillImage from 'soapbox/components/still_image';
|
||||||
import classNames from 'classnames';
|
|
||||||
|
|
||||||
class UserPanel extends ImmutablePureComponent {
|
class UserPanel extends ImmutablePureComponent {
|
||||||
|
|
||||||
|
@ -18,21 +17,16 @@ class UserPanel extends ImmutablePureComponent {
|
||||||
account: ImmutablePropTypes.map,
|
account: ImmutablePropTypes.map,
|
||||||
intl: PropTypes.object.isRequired,
|
intl: PropTypes.object.isRequired,
|
||||||
domain: PropTypes.string,
|
domain: PropTypes.string,
|
||||||
style: PropTypes.object,
|
|
||||||
}
|
|
||||||
|
|
||||||
static defaultProps = {
|
|
||||||
style: {},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { account, intl, domain, style } = this.props;
|
const { account, intl, domain } = this.props;
|
||||||
if (!account) return null;
|
if (!account) return null;
|
||||||
const displayNameHtml = { __html: account.get('display_name_html') };
|
const displayNameHtml = { __html: account.get('display_name_html') };
|
||||||
const acct = account.get('acct').indexOf('@') === -1 && domain ? `${account.get('acct')}@${domain}` : account.get('acct');
|
const acct = account.get('acct').indexOf('@') === -1 && domain ? `${account.get('acct')}@${domain}` : account.get('acct');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classNames('user-panel')} style={style}>
|
<div className='user-panel'>
|
||||||
<div className='user-panel__container'>
|
<div className='user-panel__container'>
|
||||||
|
|
||||||
<div className='user-panel__header'>
|
<div className='user-panel__header'>
|
||||||
|
|
Ładowanie…
Reference in New Issue