mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 21:08:36 +03:00
desc -> description in sources
This commit is contained in:
@@ -39,7 +39,7 @@ class SourceOverlay extends React.Component {
|
||||
}
|
||||
|
||||
renderContent (source) {
|
||||
const { url, title, paths, date, type, desc, poster } = source
|
||||
const { url, title, paths, date, type, poster, description } = source
|
||||
const shortenedTitle = title.substring(0, 100)
|
||||
return (
|
||||
<React.Fragment>
|
||||
@@ -67,8 +67,8 @@ class SourceOverlay extends React.Component {
|
||||
<Controls paths={paths} viewIdx={this.state.mediaIdx} onShiftHandler={this.onShiftGallery} />
|
||||
|
||||
<div className='mo-meta-container'>
|
||||
{desc ? <div className='mo-box-desc'>
|
||||
<div className='md-container' dangerouslySetInnerHTML={{ __html: marked(desc) }} />
|
||||
{description ? <div className='mo-box-desc'>
|
||||
<div className='md-container' dangerouslySetInnerHTML={{ __html: marked(description) }} />
|
||||
</div> : null}
|
||||
|
||||
{(type || date || url) ? (
|
||||
|
||||
@@ -70,7 +70,7 @@ const CardSource = ({ source, isLoading, onClickHandler }) => {
|
||||
height={30}
|
||||
/>
|
||||
) : fallbackIcon}
|
||||
<p>{source.id}</p>
|
||||
<p>{source.title ? source.title : source.id}</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -8,7 +8,7 @@ const sourceSchema = Joi.object().keys({
|
||||
type: Joi.string().allow(''),
|
||||
affil_s: Joi.array().allow(''),
|
||||
url: Joi.string().allow(''),
|
||||
desc: Joi.string().allow(''),
|
||||
description: Joi.string().allow(''),
|
||||
parent: Joi.string().allow(''),
|
||||
author: Joi.string().allow(''),
|
||||
date: Joi.string().allow(''),
|
||||
|
||||
Reference in New Issue
Block a user