From c1863fba0771a1f5dccdb8974b20c814cd9611f3 Mon Sep 17 00:00:00 2001 From: Lachlan Kermode Date: Fri, 26 Jun 2020 11:28:17 +0200 Subject: [PATCH] desc -> description in sources --- src/components/Overlay/Media.js | 6 +++--- src/components/presentational/Card/Source.js | 2 +- src/reducers/validate/sourceSchema.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Overlay/Media.js b/src/components/Overlay/Media.js index fcda779..15d35bf 100644 --- a/src/components/Overlay/Media.js +++ b/src/components/Overlay/Media.js @@ -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 ( @@ -67,8 +67,8 @@ class SourceOverlay extends React.Component {
- {desc ?
-
+ {description ?
+
: null} {(type || date || url) ? ( diff --git a/src/components/presentational/Card/Source.js b/src/components/presentational/Card/Source.js index c10d9ea..575ca2f 100644 --- a/src/components/presentational/Card/Source.js +++ b/src/components/presentational/Card/Source.js @@ -70,7 +70,7 @@ const CardSource = ({ source, isLoading, onClickHandler }) => { height={30} /> ) : fallbackIcon} -

{source.id}

+

{source.title ? source.title : source.id}

)}
diff --git a/src/reducers/validate/sourceSchema.js b/src/reducers/validate/sourceSchema.js index eb5065d..e4f5475 100644 --- a/src/reducers/validate/sourceSchema.js +++ b/src/reducers/validate/sourceSchema.js @@ -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(''),