// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import $ from 'jquery'; import {FormattedMessage} from 'react-intl'; import React from 'react'; export default class NotLoggedIn extends React.Component { componentDidMount() { $('body').addClass('sticky'); $('#root').addClass('container-fluid'); } componentWillUnmount() { $('body').removeClass('sticky'); $('#root').removeClass('container-fluid'); } render() { const content = []; if (global.window.mm_config.HelpLink) { content.push( ); } if (global.window.mm_config.TermsOfServiceLink) { content.push( ); } if (global.window.mm_config.PrivacyPolicyLink) { content.push( ); } if (global.window.mm_config.AboutLink) { content.push( ); } return (
{this.props.children}
{'Mattermost'}
{'© 2015-2016 Mattermost, Inc.'} {content}
); } } NotLoggedIn.defaultProps = { }; NotLoggedIn.propTypes = { children: React.PropTypes.object };