// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import $ from 'jquery'; import {FormattedMessage} from 'react-intl'; import PropTypes from 'prop-types'; 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( ); } content.push( ); if (global.window.mm_config.PrivacyPolicyLink) { content.push( ); } if (global.window.mm_config.AboutLink) { content.push( ); } return (
{this.props.children}
{'Mattermost'}
{`© 2015-${new Date().getFullYear()} Mattermost, Inc.`} {content}
); } } NotLoggedIn.defaultProps = { }; NotLoggedIn.propTypes = { children: PropTypes.object };