diff --git a/src/components/FlameLinkCollectionGallery.js b/src/components/FlameLinkCollectionGallery.js index 0756c23..7618ce7 100644 --- a/src/components/FlameLinkCollectionGallery.js +++ b/src/components/FlameLinkCollectionGallery.js @@ -44,11 +44,14 @@ class FlameLinkCollectionGallery extends Component { .then(result => this.setState({ schemaContent: result })) - - flamelinkApp.schemas.get(this.props.galleryName) - .then(result => this.setState({ - schemaDescription: result.title - })) + if(this.props.showTitle === false){ + } + else{ + flamelinkApp.schemas.get(this.props.galleryName) + .then(result => this.setState({ + schemaDescription: result.title + })) + } } getGalleryInfo(schemaDetails, schemaContent){ diff --git a/src/components/Main.js b/src/components/Main.js index d757123..f6140fe 100644 --- a/src/components/Main.js +++ b/src/components/Main.js @@ -153,13 +153,13 @@ class ResponsiveDrawer extends React.Component { this.nav('Gallery1')}> - + this.nav('Gallery2')}> - + this.nav('Gallery3')}> - + @@ -226,9 +226,9 @@ class ResponsiveDrawer extends React.Component { {this.state.key === 'Easy-Quiz' && } {this.state.key === 'Intermediate-Quiz' && } {this.state.key === 'Advanced-Quiz' && } - {this.state.key === 'Gallery1' && } - {this.state.key === 'Gallery2' && } - {this.state.key === 'Gallery3' && } + {this.state.key === 'Gallery1' && } + {this.state.key === 'Gallery2' && } + {this.state.key === 'Gallery3' && } ); diff --git a/src/pages/Home.js b/src/pages/Home.js index 7e249a8..53844f9 100644 --- a/src/pages/Home.js +++ b/src/pages/Home.js @@ -33,7 +33,7 @@ class Home extends Component { render() { return ( - + );