feat: calendar header formatting and data displaying (#160)

This commit is contained in:
Samuel Gunter
2024-03-13 21:38:40 -05:00
committed by GitHub
parent 61c1e88dcf
commit 5cce1c79fc
16 changed files with 57 additions and 10 deletions

View File

@@ -26,9 +26,9 @@ export default function ScheduleTotalHoursAndCourses({
{`${scheduleName}: `}
</Text>
<Text variant='h3' as='div' className='flex flex-row items-center gap-2 text-theme-black'>
{totalHours} HOURS
{totalHours} {totalHours === 1 ? 'HOUR' : 'HOURS'}
<Text variant='h4' as='span' className='text-ut-black'>
{totalCourses} courses
{totalCourses} {totalCourses === 1 ? 'COURSE' : 'COURSES'}
</Text>
</Text>
</div>