infra for multiple sources in Card

This commit is contained in:
Lachlan Kermode
2018-12-13 17:47:35 +00:00
parent c85b0c9001
commit cccbcb9e54
2 changed files with 13 additions and 7 deletions

View File

@@ -91,10 +91,12 @@ class Card extends React.Component {
<CardSource
isLoading={this.props.isLoading}
language={this.props.language}
source={{
...this.props.source,
error: this.props.sourceError
}}
sources={[
...this.props.event.sources.map(s => ({
...s,
error: this.props.sourceError
})),
]}
/>
)
}