display source errors in card

This commit is contained in:
Lachlan Kermode
2018-12-11 11:24:53 +00:00
parent bf0c78d0a0
commit ab20d962ad
6 changed files with 38 additions and 17 deletions

View File

@@ -20,6 +20,7 @@ class CardStack extends React.Component {
return (
<Card
event={event}
sourceError={this.props.sourceError}
language={this.props.language}
isLoading={this.props.isLoading}
getNarrativeLinks={this.props.getNarrativeLinks}
@@ -89,6 +90,7 @@ class CardStack extends React.Component {
function mapStateToProps(state) {
return {
selected: state.app.selected,
sourceError: state.app.errors.source,
language: state.app.language,
isCardstack: state.app.flags.isCardstack,
isLoading: state.app.flags.isFetchingSources