-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E2461: UI for Courses #70
base: main
Are you sure you want to change the base?
Conversation
const institutionId = Number(event.target.value); | ||
setSelectedInstitutionId(institutionId); | ||
}; | ||
// Success handler for course submission |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In CourseEditor.tsx, the handleCourseSuccess and handleCourseError functions have been separated to enhance readability and follow the Single Responsibility Principle (SRP).
@@ -32,18 +33,22 @@ const DeleteCourse: React.FC<IDeleteCourse> = ({ courseData, onClose }) => { | |||
useEffect(() => { | |||
if (courseError) dispatch(alertActions.showAlert({ variant: "danger", message: courseError })); | |||
}, [courseError, dispatch]); | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this to allow flexibility and adhere to LSP
As part of the course, CSC 517 Fall 2024 — OSS1 Project Phase 1.
Contributors: Suraj Raghu Kumar (sraghuk), Yuktasree Muppala (ymuppal2), Harvardhan Patil (hspatil)