mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 13:28:36 +03:00
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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user