Handles displaying titles of galleries
This commit is contained in:
parent
00a3566dec
commit
477a8d264c
|
@ -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){
|
||||
|
|
|
@ -153,13 +153,13 @@ class ResponsiveDrawer extends React.Component {
|
|||
<Collapse in={this.state.open2} timeout="auto" unmountOnExit>
|
||||
<List component="div" disablePadding>
|
||||
<ListItem button className={classes.nested} onClick={() => this.nav('Gallery1')}>
|
||||
<ListItemText inset primary="Gallery1" />
|
||||
<ListItemText inset primary="Martens and Kits" />
|
||||
</ListItem>
|
||||
<ListItem button className={classes.nested} onClick={() => this.nav('Gallery2')}>
|
||||
<ListItemText inset primary="Gallery2" />
|
||||
<ListItemText inset primary="Martens at Night" />
|
||||
</ListItem>
|
||||
<ListItem button className={classes.nested} onClick={() => this.nav('Gallery3')}>
|
||||
<ListItemText inset primary="Gallery3" />
|
||||
<ListItemText inset primary="Martens Being Martens" />
|
||||
</ListItem>
|
||||
</List>
|
||||
</Collapse>
|
||||
|
@ -226,9 +226,9 @@ class ResponsiveDrawer extends React.Component {
|
|||
{this.state.key === 'Easy-Quiz' && <Quiz difficulty='Easy'/>}
|
||||
{this.state.key === 'Intermediate-Quiz' && <Quiz difficulty='Intermediate'/>}
|
||||
{this.state.key === 'Advanced-Quiz' && <Quiz difficulty='Advanced'/>}
|
||||
{this.state.key === 'Gallery1' && <FlameLinkCollectionGallery galleryName={'martenGallery'}/>}
|
||||
{this.state.key === 'Gallery2' && <FlameLinkCollectionGallery galleryName={'martenGallery'}/>}
|
||||
{this.state.key === 'Gallery3' && <FlameLinkCollectionGallery galleryName={'martenGallery'}/>}
|
||||
{this.state.key === 'Gallery1' && <FlameLinkCollectionGallery galleryName={'martensAndKits'}/>}
|
||||
{this.state.key === 'Gallery2' && <FlameLinkCollectionGallery galleryName={'martensAtNight'}/>}
|
||||
{this.state.key === 'Gallery3' && <FlameLinkCollectionGallery galleryName={'martensBeingMartens'}/>}
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -33,7 +33,7 @@ class Home extends Component {
|
|||
render() {
|
||||
return (
|
||||
<Grid container>
|
||||
<FlameLinkCollectionGallery galleryName={'martenGallery'}/>
|
||||
<FlameLinkCollectionGallery galleryName={'martenHomeGallery'} showTitle={false}/>
|
||||
<FlameLinkComponentCreations schemaDetails={this.state.schemaDetails} schemaType = {this.state.schemaType}/>
|
||||
</Grid>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue