WIP: simplify narratives selection

This commit is contained in:
Lachlan Kermode
2019-01-03 15:51:09 +00:00
parent a39af029a3
commit c75405f2ba
8 changed files with 69 additions and 67 deletions

View File

@@ -56,11 +56,15 @@ class NarrativeCard extends React.Component {
}
render() {
// no display if no narrative
if (!this.props.narrative) return null
console.log(this.props.narrative)
const { steps, current } = this.props.narrative
if (steps[current]) {
const step = steps[current];
console.log('here')
return (
<div className='narrative-info'>