properly generating and formating instructor text

This commit is contained in:
Sriram Hariharan
2023-03-06 00:10:03 -06:00
parent 7401138d87
commit 8b5fabce0c
2 changed files with 45 additions and 14 deletions

View File

@@ -33,7 +33,13 @@ export default function CoursePopup({ course, onClose }: Props) {
#{course.uniqueId}
</Link>
</Text>
<Text size='medium'>
{course.getInstructorString({
prefix: 'with ',
format: 'first_last',
max: 3,
})}
</Text>
</Card>
</Popup>
);