Select only updateNarrative as action to pass to Toolbar

This commit is contained in:
Franc Camps-Febrer
2018-12-13 11:37:57 +01:00
committed by Lachlan Kermode
parent 58aaadc5d4
commit 6dee9fee2f
4 changed files with 18 additions and 28 deletions

View File

@@ -36,17 +36,6 @@ class CardStack extends React.Component {
return '';
}
renderLocation() {
let locationName = copy[this.props.language].cardstack.unknown_location;
if (this.props.selected.length > 0) {
if (isNotNullNorUndefined(this.props.selected[0].location)) {
locationName = this.props.selected[0].location;
}
return (<p className="header-copy">in:<b>{` ${locationName}`}</b></p>)
}
return '';
}
renderCardStackHeader() {
const header_lang = copy[this.props.language].cardstack.header;