desc -> description in sources

This commit is contained in:
Lachlan Kermode
2020-06-26 11:28:17 +02:00
parent ec418f4a41
commit c1863fba07
3 changed files with 5 additions and 5 deletions

View File

@@ -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) ? (

View File

@@ -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>

View File

@@ -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(''),