// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import {Modal} from 'react-bootstrap'; import {FormattedMessage} from 'react-intl'; import React from 'react'; export default class AboutBuildModal extends React.Component { constructor(props) { super(props); this.doHide = this.doHide.bind(this); } doHide() { this.props.onModalDismissed(); } render() { const config = global.window.mm_config; const license = global.window.mm_license; let title = ( ); let licensee; if (config.BuildEnterpriseReady === 'true') { title = ( ); if (license.IsLicensed === 'true') { title = ( ); licensee = (
{license.Company}
); } } return (

{'Mattermost'} {title}

{licensee}
{config.Version}
{config.BuildNumber}
{config.BuildDate}
{config.BuildHash}
); } } AboutBuildModal.defaultProps = { show: false }; AboutBuildModal.propTypes = { show: React.PropTypes.bool.isRequired, onModalDismissed: React.PropTypes.func.isRequired };