import React from 'react'; import { defineMessages, injectIntl, FormattedMessage, FormattedNumber } from 'react-intl'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../ui/components/column'; import { parseVersion } from 'soapbox/utils/features'; const messages = defineMessages({ heading: { id: 'column.admin.dashboard', defaultMessage: 'Dashboard' }, }); const mapStateToProps = (state, props) => ({ instance: state.get('instance'), }); export default @connect(mapStateToProps) @injectIntl class Dashboard extends ImmutablePureComponent { static propTypes = { intl: PropTypes.object.isRequired, instance: ImmutablePropTypes.map.isRequired, }; render() { const { intl, instance } = this.props; const v = parseVersion(instance.get('version')); return (

  • Soapbox FE 1.1.0
  • {v.software} {v.version}
); } }