fix(ui): placeholder text for no instructor course #400 (#402)

* fix(ui): placeholder text for no instructor course #400

* Update src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx

Co-authored-by: Samuel Gunter <sgunter@utexas.edu>

---------

Co-authored-by: Samuel Gunter <sgunter@utexas.edu>
This commit is contained in:
adityamkk
2024-10-29 12:12:51 -05:00
committed by GitHub
parent 0077ae70d2
commit b3ae91d8f3

View File

@@ -130,8 +130,8 @@ export default function HeadingAndActions({ course, activeSchedule, onClose }: H
</button>
</div>
<div className='flex items-center gap-2'>
{instructors.length > 0 && (
<Text variant='h4' as='p' className='items-center justify-center'>
{instructors.length > 0 ? (
<Text variant='h4' as='p'>
with{' '}
{instructors
.map(instructor => (
@@ -146,6 +146,10 @@ export default function HeadingAndActions({ course, activeSchedule, onClose }: H
))
.flatMap((el, i) => (i === 0 ? [el] : [', ', el]))}
</Text>
) : (
<Text variant='h4' as='p'>
(No instructor has been provided)
</Text>
)}
<div className='flex items-center gap-1'>
{flags.map((flag: string) => (