render transcript below video

This commit is contained in:
Berkeley Martinez
2015-07-14 23:06:54 -07:00
parent 5e02896269
commit 3dbe91e92d

View File

@ -40,8 +40,13 @@ export default contain(
},
render() {
const { title, challengeSeed } = this.props.currentHike;
const [ id ] = challengeSeed || ['1'];
const {
title,
challengeSeed = ['1'],
description = []
} = this.props.currentHike;
const [ id ] = challengeSeed;
return (
<Col xs={ 12 }>
@ -56,6 +61,15 @@ export default contain(
onFinish= { this.handleFinish }
videoId={ id } />
</Row>
<Row>
<Col xs={ 12 }>
<Panel>
<p>
{ description.join('\n') }
</p>
</Panel>
</Col>
</Row>
</Col>
);
}