From de635740d217cd5b861309c5be99022fea7eaba9 Mon Sep 17 00:00:00 2001 From: Derek Chen Date: Tue, 1 Oct 2024 04:23:11 -0500 Subject: [PATCH 1/2] feat: missed one chip toggle there --- src/views/components/common/PopupCourseBlock.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/components/common/PopupCourseBlock.tsx b/src/views/components/common/PopupCourseBlock.tsx index 7130d4ac8..acbf3e13f 100644 --- a/src/views/components/common/PopupCourseBlock.tsx +++ b/src/views/components/common/PopupCourseBlock.tsx @@ -8,6 +8,7 @@ import { StatusIcon } from '@shared/util/icons'; import Text from '@views/components/common/Text/Text'; import clsx from 'clsx'; import React from 'react'; +import { enableCourseStatusChips } from 'src/shared/util/experimental'; import DragIndicatorIcon from '~icons/material-symbols/drag-indicator'; @@ -65,7 +66,7 @@ export default function PopupCourseBlock({ {formattedUniqueId} {course.department} {course.number} –{' '} {course.instructors.length === 0 ? 'Unknown' : course.instructors.map(v => v.lastName)} - {course.status !== Status.OPEN && ( + {enableCourseStatusChips && course.status !== Status.OPEN && (
Date: Tue, 1 Oct 2024 04:26:08 -0500 Subject: [PATCH 2/2] chore: linting --- src/views/components/common/PopupCourseBlock.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/components/common/PopupCourseBlock.tsx b/src/views/components/common/PopupCourseBlock.tsx index acbf3e13f..6ddbf13e1 100644 --- a/src/views/components/common/PopupCourseBlock.tsx +++ b/src/views/components/common/PopupCourseBlock.tsx @@ -4,11 +4,11 @@ import type { Course } from '@shared/types/Course'; import { Status } from '@shared/types/Course'; import type { CourseColors } from '@shared/types/ThemeColors'; import { pickFontColor } from '@shared/util/colors'; +import { enableCourseStatusChips } from '@shared/util/experimental'; import { StatusIcon } from '@shared/util/icons'; import Text from '@views/components/common/Text/Text'; import clsx from 'clsx'; import React from 'react'; -import { enableCourseStatusChips } from 'src/shared/util/experimental'; import DragIndicatorIcon from '~icons/material-symbols/drag-indicator';