import React, {Component, PropTypes} from 'react'; import Link from '../../components/base/Link'; import {showModal} from '../modals/index'; import SettingsModal from '../modals/SettingsModal'; class ResponseError extends Component { render () { const {error} = this.props; let msg = null; if (error && error.toLowerCase().indexOf('certificate') !== -1) { msg = ( ) } else if (error && error.toLowerCase().indexOf('getaddrinfo') !== -1) { msg = ( ) } else { msg = ( Documentation ) } return (
          {error}
        

Here are some additional things that may help.

{msg}    Contact Support
); } } ResponseError.propTypes = { error: PropTypes.string.isRequired, url: PropTypes.string.isRequired }; export default ResponseError;