Skip to content

Commit

Permalink
Merge pull request #504 from Aar-if/forty
Browse files Browse the repository at this point in the history
Issue #000 Bug:  Course Planner fix for if no data, subject name is not visible.
  • Loading branch information
itsvick authored Dec 5, 2024
2 parents 4b2802e + 24bc4ee commit 1d87fcc
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/pages/course-planner/center/[cohortId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,16 @@ const CoursePlannerDetail = () => {
transform: isRTL ? ' rotate(180deg)' : 'unset',
}}
/>
{!userProjectDetails?.tasks?.length && (
<Box
sx={{
fontSize: '16px',
color: theme.palette.warning['300'],
}}
>
{tStore?.taxonomySubject}
</Box>
)}
{userProjectDetails?.tasks?.length > 0 && (
<>
<Box>
Expand Down Expand Up @@ -461,7 +471,6 @@ const CoursePlannerDetail = () => {
</Typography>
</Box>
</Box>

<Box
sx={{
fontSize: '16px',
Expand Down Expand Up @@ -775,7 +784,7 @@ const CoursePlannerDetail = () => {
))
) : (
<Typography
sx={{ mt: 2, textAlign: 'center', color: '#7C766F' }}
sx={{ mt: 5, textAlign: 'center', color: '#7C766F' }}
>
{t('ASSESSMENTS.NO_DATA_FOUND')}
</Typography>
Expand Down

0 comments on commit 1d87fcc

Please sign in to comment.