WikiEducationFoundation / WikiEduDashboard

Wiki Education Foundation's Wikipedia course dashboard system
https://dashboard.wikiedu.org
MIT License
385 stars 600 forks source link

Migration from Class to Functional Components(Week.jsx) file. #5833

Open abhay-dev2901 opened 2 weeks ago

abhay-dev2901 commented 2 weeks ago

NOTE: Please review the pull request process before opening your first PR: https://github.com/WikiEducationFoundation/WikiEduDashboard/blob/master/CONTRIBUTING.md#pull-request-process

What this PR does

This PR refactors the Week.jsx component from a class-based component to a functional component using React hooks. It maintains all the original functionalities while following the latest React guidelines. The changes include:

This refactor addresses issues related to outdated React practices and aims to improve the performance and readability of the code.

Screenshots

Before:

After:

Open questions and concerns

ragesoss commented 2 weeks ago

Please include screenshots, and do not include unrelated changes to schema.rb in the PR.

abhay-dev2901 commented 6 days ago

OK sir I will fix it

ragesoss commented 1 day ago

This still includes changes to unrelated files.