line height text, refactored course schedule, added string representation functions to course meeting

This commit is contained in:
Sriram Hariharan
2023-03-06 16:51:46 -06:00
parent 007ade81a0
commit 9b76f8afa0
9 changed files with 182 additions and 56 deletions

View File

@@ -25,6 +25,7 @@ export default function Text(props: PropsWithChildren<TextProps>) {
style.color ??= colors?.[props.color ?? 'charcoal'];
style.fontSize ??= fonts?.[`${props.size ?? 'medium'}_size`];
style.fontWeight ??= fonts?.[`${props.weight ?? 'regular'}_weight`];
style.lineHeight ??= fonts?.[`${props.size ?? 'medium'}_line_height`];
if (props.span) {
return (

View File

@@ -16,6 +16,7 @@ interface Props {
* The popup that appears when the user clicks on a course for more details.
*/
export default function CoursePopup({ course, onClose }: Props) {
console.log(course);
return (
<Popup className={styles.popup} overlay>
<Icon className={styles.close} size='large' name='close' onClick={onClose} />