Skip to content
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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

E2461: UI for Courses #70

wants to merge 10 commits into from

Conversation

SurajRKU
Copy link

@SurajRKU SurajRKU commented Nov 1, 2024

As part of the course, CSC 517 Fall 2024 — OSS1 Project Phase 1.
Contributors: Suraj Raghu Kumar (sraghuk), Yuktasree Muppala (ymuppal2), Harvardhan Patil (hspatil)

const institutionId = Number(event.target.value);
setSelectedInstitutionId(institutionId);
};
// Success handler for course submission
Copy link
Author

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]);


Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant