-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDAN-726. Add the media icons (video, audio) to the home page dashboard display, article preview and article view #1186
Conversation
Add the media icons (video, audio) to the home page dashboard display, article preview and article view.
@@ -19,6 +21,12 @@ CardFooter.propTypes = { | |||
pictureAvailable: PropTypes.bool, | |||
source: PropTypes.string, | |||
versioncreated: PropTypes.string, | |||
audioIf: PropTypes.array, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does audioIf
and videoIf
stand for? A more descriptive naming convention would help other developers know what it is used for, for example pictureAvailable
tells us that this property defines if a picture is available or not which also tells us it's value is a boolean.
@rbi-aap A more descriptive commit title would help describe what the change is, without looking up the ticket in Jira. This helps, for example, when searching for a specific change using the history of file changes and/or commit titles. |
…to audioAvailable
@@ -2,9 +2,11 @@ import React from 'react'; | |||
import PropTypes from 'prop-types'; | |||
import CardMeta from './CardMeta'; | |||
|
|||
function CardFooter({wordCount, pictureAvailable, source, versioncreated}) { | |||
function CardFooter({wordCount, pictureAvailable, source, versioncreated, audioAvailable,videoAvailable }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small thing style thing, maybe a space after the comma like the other parameters!
@rbi-aap Could you please change the commit title to something more descriptive to define what is changed in this PR |
Add the media icons (video, audio) to the home page dashboard display, article preview and article view.
Please review, thanks