@@ -16,29 +16,37 @@ const LessonInfo = ({ lesson, base_path, course_size }) => {
1616 < hr />
1717 < p id = "lesson-description" > { description || 'No description provided' } </ p >
1818 < hr />
19+
1920 < div id = "yt-info" >
20- { /* link to YT chan, original video name, desc */ }
2121 < h3 className = "subheader" > Youtube credits</ h3 >
2222 < p id = "yt-chan" >
2323 < span className = "title" > Creator: </ span >
24- < a href = { yt_chan_src } target = "_blank" rel = "noopener noreferrer" > { yt_chan_name || 'YouTube Channel' } </ a >
24+ < a href = { yt_chan_src } target = "_blank" rel = "noopener noreferrer" > { yt_chan_name || 'YouTube Channel goes here ' } </ a >
2525 </ p >
2626 < p id = "yt-title" >
2727 < span className = "title" > Video title: </ span >
2828 < a href = { getVideoURL ( src ) } target = "_blank" rel = "noopener noreferrer" > { yt_title || 'Original YouTube Video' } </ a >
2929 </ p >
3030 < p id = "yt-desc" >
3131 < span className = "title" > Video Description: </ span >
32- { yt_desc || 'YouTube description' }
32+ { yt_desc || 'YouTube description goes here ' }
3333 </ p >
3434 </ div >
3535 </ div >
3636 ) ;
3737} ;
38+
3839LessonInfo . propTypes = {
39- title : PropTypes . string . isRequired ,
40- description : PropTypes . string . isRequired ,
41- order : PropTypes . number . isRequired ,
40+ lesson : PropTypes . shape ( {
41+ title : PropTypes . string . isRequired ,
42+ src : PropTypes . string . isRequired ,
43+ description : PropTypes . string . isRequired ,
44+ order : PropTypes . number . isRequired ,
45+ yt_chan_name : PropTypes . string . isRequired ,
46+ yt_chan_src : PropTypes . string . isRequired ,
47+ yt_title : PropTypes . string . isRequired ,
48+ yt_desc : PropTypes . string . isRequired ,
49+ } ) . isRequired ,
4250 base_path : PropTypes . string . isRequired ,
4351 course_size : PropTypes . number . isRequired ,
4452} ;
0 commit comments