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