Sha256: b96b1a2e941412c4dad59d46e64ba466bb07398f6d994e3d1811d8e2acf986fc

Contents?: true

Size: 754 Bytes

Versions: 5

Compression:

Stored size: 754 Bytes

Contents

// eslint-disable-next-line no-unused-vars
function CurriculumMapLesson(props) {
  const curriculum = props.curriculum;
  const isActive = _.includes(props.active, curriculum.id) || props.isActiveBranch;
  const cssClasses = classNames(
    'o-c-map__lesson',
    {[`${props.mapType}-bg--base`]: !isActive,
      [`${props.mapType}-bg--${props.colorCode} ${props.mapType}-bg--active`]: isActive,
      [`o-c-map__assessment--${isActive ? props.colorCode : 'base'} ${props.mapType}-bg--assessment`]: props.isAssessment,
      ['o-c-map__prerequisite']: props.isPrerequisite }
  );
  return (
    <ResourceHover cssClasses={cssClasses}
      blank={props.blank}
      resource={curriculum.resource}
      handlePopupState={props.handlePopupState}/>
  );
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lcms-engine-0.1.4 app/assets/javascripts/lcms/engine/components/curriculum-map/CurriculumMapLesson.js.jsx
lcms-engine-0.1.3 app/assets/javascripts/lcms/engine/components/curriculum-map/CurriculumMapLesson.js.jsx
lcms-engine-0.2.0 app/assets/javascripts/lcms/engine/components/curriculum-map/CurriculumMapLesson.js.jsx
lcms-engine-0.1.2 app/assets/javascripts/lcms/engine/components/curriculum-map/CurriculumMapLesson.js.jsx
lcms-engine-0.1.0 app/assets/javascripts/lcms/engine/components/curriculum-map/CurriculumMapLesson.js.jsx