Skip to content

Commit

Permalink
update from review feedback regarding naming convention from audioIf …
Browse files Browse the repository at this point in the history
…to audioAvailable
  • Loading branch information
rbi-aap committed Apr 11, 2024
1 parent d9f036c commit c3217fe
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions assets/components/cards/render/CardFooter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import React from 'react';
import PropTypes from 'prop-types';
import CardMeta from './CardMeta';

function CardFooter({wordCount, pictureAvailable, source, versioncreated, audioIf,videoIf }) {
function CardFooter({wordCount, pictureAvailable, source, versioncreated, audioAvailable,videoAvailable }) {
return (<div className="card-footer">
<CardMeta
audio={audioIf}
video = {videoIf}
audio={audioAvailable}
video = {videoAvailable}
pictureAvailable={pictureAvailable}
wordCount={wordCount}
source={source}
Expand All @@ -21,12 +21,12 @@ CardFooter.propTypes = {
pictureAvailable: PropTypes.bool,
source: PropTypes.string,
versioncreated: PropTypes.string,
audioIf: PropTypes.array,
videoIf: PropTypes.array,
audioAvailable: PropTypes.array,
videoAvailable: PropTypes.array,
};
CardFooter.defaultProps = {
audioIf: [],
videoIf: [],
audioAvailable: [],
videoAvailable: [],
};

export default CardFooter;
4 changes: 2 additions & 2 deletions assets/components/cards/render/LargePictureTextCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const getPictureTextPanel = (item, picture, openItem, cardId) => {
<img className="card-img-top" src={imageUrl} alt={caption} />
<CardBody item={item} displaySource={false} />
<CardFooter
audioIf ={audio}
videoIf = {video}
audioAvailable ={audio}
videoAvailable = {video}
wordCount={wordCount(item)}
pictureAvailable={!!picture}
source={item.source}
Expand Down
4 changes: 2 additions & 2 deletions assets/components/cards/render/PictureTextCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const getPictureTextPanel = (item, picture, openItem, withPictures, cardId) => {
}
<CardBody item={item} displayMeta={false} />
<CardFooter
audioIf ={audio}
videoIf = {video}
audioAvailable ={audio}
videoAvailable = {video}
caption={caption}
wordCount={wordCount(item)}
pictureAvailable={!!rendition}
Expand Down
4 changes: 2 additions & 2 deletions assets/components/cards/render/TopNewsOneByOneCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const getTopNewsPanel = (item, picture, openItem, cardId) => {
<div className='card-body'>
<h4 className='card-title'>{item.headline}</h4>
<CardMeta
audioIf ={audio}
videoIf = {video}
audioAvailable ={audio}
videoAvailable = {video}
pictureAvailable={!!picture}
wordCount={wordCount(item)}
source={item.source}
Expand Down
4 changes: 2 additions & 2 deletions assets/components/cards/render/TopNewsTwoByTwoCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ const getTopNewsRightPanel = (item, picture, openItem, cardId) => {
<img className='card-img-top' src={imageUrl} alt={caption} />
<CardBody item={item} displayDescription={false} displaySource={false}/>
<CardFooter
audioIf ={audio}
videoIf = {video}
audioAvailable ={audio}
videoAvailable = {video}
wordCount={wordCount(item)}
pictureAvailable={!!picture}
source={item.source}
Expand Down

0 comments on commit c3217fe

Please sign in to comment.