From 06ab0fef3316164786ce2d21e0c4fc7cc91087f1 Mon Sep 17 00:00:00 2001 From: Li Ying <121075683+yl25946@users.noreply.github.com> Date: Sun, 15 Mar 2026 04:46:07 -0400 Subject: [PATCH] Revert "kill fces (#285)" This reverts commit 02a951eeefec1aeb64cc888a34d2177969c1ef3e. --- apps/frontend/src/app/user.ts | 2 +- apps/frontend/src/components/Header.tsx | 2 +- apps/frontend/src/components/SearchBar.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/frontend/src/app/user.ts b/apps/frontend/src/app/user.ts index 8e9adad4..2ccedf9f 100644 --- a/apps/frontend/src/app/user.ts +++ b/apps/frontend/src/app/user.ts @@ -73,7 +73,7 @@ export const userSlice = createSlice({ state.bookmarked = []; }, showFCEs: (state, action: PayloadAction) => { - state.showFCEs = false; + state.showFCEs = action.payload; }, showCourseInfos: (state, action: PayloadAction) => { state.showCourseInfos = action.payload; diff --git a/apps/frontend/src/components/Header.tsx b/apps/frontend/src/components/Header.tsx index 16cb3e11..9201d101 100644 --- a/apps/frontend/src/components/Header.tsx +++ b/apps/frontend/src/components/Header.tsx @@ -41,7 +41,7 @@ export default function Header(): ReactElement { return (
- Spring/Summer 2026 instructors and room information temporarily unavailable due to changes in the Schedule of Classes. + Spring 2026 instructors and room information temporarily unavailable due to changes in the Schedule of Classes.
diff --git a/apps/frontend/src/components/SearchBar.tsx b/apps/frontend/src/components/SearchBar.tsx index 0719a2c7..7356ef7d 100644 --- a/apps/frontend/src/components/SearchBar.tsx +++ b/apps/frontend/src/components/SearchBar.tsx @@ -195,7 +195,7 @@ const SearchBar = () => { const setShowAll = (e: React.ChangeEvent) => { dispatch(userSlice.actions.showAll(e.target.checked)); - // if (isSignedIn) dispatch(userSlice.actions.showFCEs(e.target.checked)); + if (isSignedIn) dispatch(userSlice.actions.showFCEs(e.target.checked)); dispatch(userSlice.actions.showCourseInfos(e.target.checked)); dispatch(userSlice.actions.showSchedules(e.target.checked)); };