Pull dashboard Soapbox version from utils/code.js

This commit is contained in:
Alex Gleason 2021-03-30 17:28:36 -05:00
parent e0df861658
commit e6b1284f97
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -7,6 +7,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from '../ui/components/column';
import RegistrationModePicker from './components/registration_mode_picker';
import { parseVersion } from 'soapbox/utils/features';
import sourceCode from 'soapbox/utils/code';
const messages = defineMessages({
heading: { id: 'column.admin.dashboard', defaultMessage: 'Dashboard' },
@ -68,7 +69,7 @@ class Dashboard extends ImmutablePureComponent {
<div className='dashwidget'>
<h4><FormattedMessage id='admin.dashwidgets.software_header' defaultMessage='Software' /></h4>
<ul>
<li>Soapbox FE <span className='pull-right'>1.1.0</span></li>
<li>Soapbox FE <span className='pull-right'>{sourceCode.version}</span></li>
<li>{v.software} <span className='pull-right'>{v.version}</span></li>
</ul>
</div>