mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-08 03:18:36 +03:00
Add missing keys
This commit is contained in:
@@ -51,9 +51,9 @@ class TemplateCover extends React.Component {
|
||||
featureLang === 0
|
||||
? featureVideo
|
||||
: {
|
||||
...translations[featureLang - 1],
|
||||
poster: featureVideo.poster,
|
||||
};
|
||||
...translations[featureLang - 1],
|
||||
poster: featureVideo.poster,
|
||||
};
|
||||
|
||||
return (
|
||||
<div>
|
||||
@@ -64,6 +64,7 @@ class TemplateCover extends React.Component {
|
||||
if (featureLang !== langIdx) {
|
||||
return (
|
||||
<div
|
||||
key={trans.code}
|
||||
onClick={() => this.setState({ featureLang: langIdx })}
|
||||
className="trans-button"
|
||||
>
|
||||
@@ -73,6 +74,7 @@ class TemplateCover extends React.Component {
|
||||
} else {
|
||||
return (
|
||||
<div
|
||||
key="ENG"
|
||||
onClick={() => this.setState({ featureLang: 0 })}
|
||||
className="trans-button"
|
||||
>
|
||||
@@ -99,6 +101,7 @@ class TemplateCover extends React.Component {
|
||||
<div className="row">
|
||||
{headerVideos.slice(0, 2).map((media, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="cell plain"
|
||||
onClick={() => this.setState({ video: index })}
|
||||
>
|
||||
@@ -208,8 +211,9 @@ class TemplateCover extends React.Component {
|
||||
</div>
|
||||
|
||||
{Array.isArray(this.props.cover.description) ? (
|
||||
this.props.cover.description.map((e) => (
|
||||
this.props.cover.description.map((e, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="md-container"
|
||||
dangerouslySetInnerHTML={{ __html: marked(e) }}
|
||||
/>
|
||||
@@ -230,6 +234,7 @@ class TemplateCover extends React.Component {
|
||||
{videos &&
|
||||
videos.slice(0, 2).map((media, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="cell small"
|
||||
onClick={this.onVideoClickHandler(index)}
|
||||
>
|
||||
@@ -243,6 +248,7 @@ class TemplateCover extends React.Component {
|
||||
{videos.length > 2 &&
|
||||
this.props.cover.videos.slice(2, 4).map((media, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="cell small"
|
||||
onClick={this.onVideoClickHandler(index + 2)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user