Skip to content

Commit

Permalink
fixup! fixup! feat: Add support for showing and hiding parts of the p…
Browse files Browse the repository at this point in the history
…rogress page
  • Loading branch information
xitij2000 committed Oct 15, 2024
1 parent 25622ee commit 3ae0bee
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/course-home/progress-tab/ProgressTab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ const ProgressTab = () => {
<CourseCompletion />
{!wideScreen && isVisible('CertificateStatus') && <CertificateStatus />}
{isVisible('Grades') && <CourseGrade />}
<div className={`grades my-4 p-4 rounded raised-card ${applyLockedOverlay}`} aria-hidden={gradesFeatureIsFullyLocked}>
{isVisible('GradeSummary') && <GradeSummary />}
{isVisible('GradeSummary') && <DetailedGrades />}
</div>
{isVisible('GradeBreakdown') && (
<div className={`grades my-4 p-4 rounded raised-card ${applyLockedOverlay}`} aria-hidden={gradesFeatureIsFullyLocked}>
<GradeSummary />
<DetailedGrades />
</div>
)}
</div>

{/* Side panel */}
Expand Down

0 comments on commit 3ae0bee

Please sign in to comment.