import React, {PureComponent, PropTypes} from 'react'; import Link from '../base/link'; import {showModal} from '../modals/index'; import SettingsModal from '../modals/settings-modal'; class ResponseError extends PureComponent { render () { const {error, fontSize} = 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 = { // Required error: PropTypes.string.isRequired, url: PropTypes.string.isRequired, fontSize: PropTypes.number.isRequired }; export default ResponseError;