Deprecated usage of env constants USE_ASSOCIATION_DESCRIPTIONS, USE_NARRATIVESand FILTERS_AS_NARRATIVES to instead check for existence of narratives; deprecated usage of unused components such as CardFilters, CardNarrative, and NarrativeLink

This commit is contained in:
efarooqui
2020-09-09 20:38:11 -07:00
parent a1f7cf69d4
commit 10e905afeb
9 changed files with 14 additions and 111 deletions

View File

@@ -5,10 +5,8 @@ import CardCustomField from './presentational/Card/CustomField'
import CardTime from './presentational/Card/Time'
import CardLocation from './presentational/Card/Location'
import CardCaret from './presentational/Card/Caret'
import CardFilters from './presentational/Card/Filters'
import CardSummary from './presentational/Card/Summary'
import CardSource from './presentational/Card/Source'
import CardNarrative from './presentational/Card/Narrative'
import { makeNiceDate } from '../common/utilities'
class Card extends React.Component {
@@ -39,18 +37,6 @@ class Card extends React.Component {
)
}
renderFilters () {
if (!this.props.filters || (this.props.filters && this.props.filters.length === 0)) {
return null
}
return (
<CardFilters
filters={this.props.filters || []}
language={this.props.language}
/>
)
}
renderLocation () {
return (
<CardLocation
@@ -107,21 +93,6 @@ class Card extends React.Component {
)
}
renderNarrative () {
// const links = this.props.getNarrativeLinks(this.props.event)
if (links !== null) {
return (
<CardNarrative
select={(event) => this.props.onSelect([event])}
makeTimelabel={(timestamp) => this.makeTimelabel(timestamp)}
next={links.next}
prev={links.prev}
/>
)
}
}
renderCustomFields () {
return this.props.features.CUSTOM_EVENT_FIELDS
.map(field => {