From 1034bcca2c4c0ddbd96e41e3a776c24b23a3bddd Mon Sep 17 00:00:00 2001 From: Aponia Date: Thu, 19 Oct 2023 11:35:46 -0700 Subject: [PATCH] refresh button --- .../src/components/RightPane/CoursePane/CoursePaneRoot.tsx | 2 +- .../components/RightPane/CoursePane/CourseRenderPane.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/antalmanac/src/components/RightPane/CoursePane/CoursePaneRoot.tsx b/apps/antalmanac/src/components/RightPane/CoursePane/CoursePaneRoot.tsx index f953dda83..46f498fd0 100644 --- a/apps/antalmanac/src/components/RightPane/CoursePane/CoursePaneRoot.tsx +++ b/apps/antalmanac/src/components/RightPane/CoursePane/CoursePaneRoot.tsx @@ -66,7 +66,7 @@ function RightPane() { {RightPaneStore.getDoDisplaySearch() ? ( ) : ( - + )} ); diff --git a/apps/antalmanac/src/components/RightPane/CoursePane/CourseRenderPane.tsx b/apps/antalmanac/src/components/RightPane/CoursePane/CourseRenderPane.tsx index c812b3d18..293ff4443 100644 --- a/apps/antalmanac/src/components/RightPane/CoursePane/CourseRenderPane.tsx +++ b/apps/antalmanac/src/components/RightPane/CoursePane/CourseRenderPane.tsx @@ -40,7 +40,7 @@ function flattenSOCObject(SOCObject: WebsocAPIResponse): (WebsocSchool | WebsocD return accumulator; }, []); -}; +} const RecruitmentBanner = () => { const [bannerVisibility, setBannerVisibility] = React.useState(true); @@ -135,7 +135,7 @@ const SectionTableWrapped = ( return
{component}
; }; -export function CourseRenderPane() { +export function CourseRenderPane(props: { id?: number }) { const [loading, setLoading] = useState(true); const [error, setError] = useState(false); const [scheduleNames, setScheduleNames] = useState(AppStore.getScheduleNames()); @@ -203,7 +203,7 @@ export function CourseRenderPane() { useEffect(() => { loadCourses(); - }, []); + }, [props.id]); useEffect(() => { const updateScheduleNames = () => {