File tree Expand file tree Collapse file tree
src/course-unit/course-sequence/sequence-navigation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ const UnitButton = ({
1010 unitId,
1111 className,
1212 showTitle,
13+ isActive, // passed from parent (SequenceNavigationTabs)
1314} ) => {
1415 const courseId = useSelector ( getCourseId ) ;
1516 const sequenceId = useSelector ( getSequenceId ) ;
1617
1718 const unit = useSelector ( ( state ) => state . models . units [ unitId ] ) ;
18-
19- const { title, contentType, isActive } = unit || { } ;
19+ const { title, contentType } = unit || { } ;
2020
2121 return (
2222 < Button
@@ -37,11 +37,13 @@ UnitButton.propTypes = {
3737 className : PropTypes . string ,
3838 showTitle : PropTypes . bool ,
3939 unitId : PropTypes . string . isRequired ,
40+ isActive : PropTypes . bool ,
4041} ;
4142
4243UnitButton . defaultProps = {
4344 className : undefined ,
4445 showTitle : false ,
46+ isActive : false ,
4547} ;
4648
4749export default UnitButton ;
You can’t perform that action at this time.
0 commit comments