display a simple error text

This commit is contained in:
Riley Davis
2016-11-08 16:19:40 -07:00
parent ff52714f27
commit c6188913d8
@@ -75,10 +75,12 @@ class Configure extends React.Component {
}
render () {
const pageTitle = this.state.activeSection === 'comments'
let pageTitle = this.state.activeSection === 'comments'
? 'Comment Settings'
: 'Embed Comment Stream'
if (this.props.fetchingSettings) pageTitle += ' - Loading...'
return (
<Page>
<div className={styles.container}>
@@ -101,6 +103,8 @@ class Configure extends React.Component {
</div>
<div className={styles.mainContent}>
<h1>{pageTitle}</h1>
{ this.props.saveFetchingError }
{ this.props.fetchSettingsError }
{
this.state.activeSection === 'comments'
? this.getCommentSettings()