bigbuffet-rw/app/soapbox/features/admin/components/admin_nav.js
Alex Gleason 248a33e79a
Admin: add reports
Drop domain_count because it's less important
2020-12-29 12:44:29 -06:00

26 lines
908 B
JavaScript

import React from 'react';
import Icon from 'soapbox/components/icon';
import { NavLink } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
export default
class AdminNav extends React.PureComponent {
render() {
return (
<div className='wtf-panel promo-panel'>
<div className='promo-panel__container'>
<NavLink className='promo-panel-item' to='/admin'>
<Icon id='tachometer' className='promo-panel-item__icon' fixedWidth />
<FormattedMessage id='admin_nav.dashboard' defaultMessage='Dashboard' />
</NavLink>
<a className='promo-panel-item' href='/pleroma/admin/#/reports/index' target='_blank'>
<Icon id='gavel' className='promo-panel-item__icon' fixedWidth />
<FormattedMessage id='admin_nav.reports' defaultMessage='Reports' />
</a>
</div>
</div>
);
}
}