// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import $ from 'jquery';
import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router/es6';
import {ErrorPageTypes} from 'utils/constants.jsx';
import * as Utils from 'utils/utils.jsx';
export default class ErrorPage extends React.Component {
static propTypes = {
location: PropTypes.object.isRequired
};
componentDidMount() {
$('body').attr('class', 'sticky error');
}
componentWillUnmount() {
$('body').attr('class', '');
}
renderTitle = () => {
switch (this.props.location.query.type) {
case ErrorPageTypes.LOCAL_STORAGE:
return (
{this.props.location.query.message}
; } return (