* 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:
@@ -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) => (
|
||||
|
||||
Reference in New Issue
Block a user