Merge branch 'Longhorn-Developers:main' into derek/experimental
This commit is contained in:
@@ -43,16 +43,17 @@ export default function CalendarCourseCell({
|
||||
onClick,
|
||||
}: CalendarCourseCellProps): JSX.Element {
|
||||
let rightIcon: React.ReactNode | null = null;
|
||||
if (status === Status.WAITLISTED) {
|
||||
rightIcon = <WaitlistIcon className='h-5 w-5' />;
|
||||
} else if (status === Status.CLOSED) {
|
||||
rightIcon = <ClosedIcon className='h-5 w-5' />;
|
||||
} else if (status === Status.CANCELLED) {
|
||||
rightIcon = <CancelledIcon className='h-5 w-5' />;
|
||||
}
|
||||
// if (status === Status.WAITLISTED) {
|
||||
// rightIcon = <WaitlistIcon className='h-5 w-5' />;
|
||||
// } else if (status === Status.CLOSED) {
|
||||
// rightIcon = <ClosedIcon className='h-5 w-5' />;
|
||||
// } else if (status === Status.CANCELLED) {
|
||||
// rightIcon = <CancelledIcon className='h-5 w-5' />;
|
||||
// }
|
||||
|
||||
// text-white or text-black based on secondaryColor
|
||||
const fontColor = pickFontColor(colors.primaryColor);
|
||||
// Note that overflow-hidden is the duct tape holding this all together
|
||||
|
||||
return (
|
||||
<div
|
||||
@@ -78,8 +79,8 @@ export default function CalendarCourseCell({
|
||||
<Text
|
||||
variant='h1-course'
|
||||
as='p'
|
||||
className={clsx('leading-tight! truncate', {
|
||||
'-mt-0.8 -mb-0.2': timeAndLocation,
|
||||
className={clsx('leading-tight! truncate overflow-clip!', {
|
||||
'-mb-0.2': timeAndLocation,
|
||||
'text-wrap': !timeAndLocation,
|
||||
})}
|
||||
>
|
||||
|
||||
@@ -38,6 +38,10 @@ const links: LinkItem[] = [
|
||||
text: 'Degree Audit',
|
||||
url: 'https://utdirect.utexas.edu/apps/degree/audits/',
|
||||
},
|
||||
{
|
||||
text: 'My Registered Courses',
|
||||
url: 'https://utdirect.utexas.edu/registration/classlist.WBX',
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user