From bc1d2d69974566e020f3cbd6201798cf18cac59d Mon Sep 17 00:00:00 2001 From: Minh Nguyen <64875104+MinhxNguyen7@users.noreply.github.com> Date: Mon, 16 Oct 2023 00:47:33 +0000 Subject: [PATCH 1/2] Remove unnecessary store usage --- .../src/components/RightPane/SectionTable/SectionTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx b/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx index df3f08769..71223f6de 100644 --- a/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx +++ b/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx @@ -104,7 +104,7 @@ function EnrollmentColumnHeader(props: EnrollmentColumnHeaderProps) { function SectionTable(props: SectionTableProps) { const { courseDetails, term, allowHighlight, scheduleNames, analyticsCategory } = props; - const [selectedColumns, activeColumns] = useColumnStore((store) => [store.selectedColumns, store.activeColumns]); + const [activeColumns] = useColumnStore((store) => [store.activeColumns]); const isMobileScreen = useMediaQuery(`(max-width: ${MOBILE_BREAKPOINT})`); From ab6aa5780b05442bf9bc106c87569a4b56d4eacb Mon Sep 17 00:00:00 2001 From: Minh Nguyen <64875104+MinhxNguyen7@users.noreply.github.com> Date: Mon, 16 Oct 2023 01:25:49 +0000 Subject: [PATCH 2/2] Thin section table scrollbar --- .../src/components/RightPane/SectionTable/SectionTable.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx b/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx index 71223f6de..c9e2dd9fd 100644 --- a/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx +++ b/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx @@ -21,6 +21,7 @@ import { SectionTableProps } from './SectionTable.types'; import SectionTableBody from './SectionTableBody'; import useColumnStore, { SECTION_TABLE_COLUMNS, type SectionTableColumn } from '$stores/ColumnStore'; import analyticsEnum from '$lib/analytics'; +import { GlobalStyles } from '@mui/material'; const TOTAL_NUM_COLUMNS = SECTION_TABLE_COLUMNS.length; @@ -127,6 +128,7 @@ function SectionTable(props: SectionTableProps) { return ( <> +