WikiEducationFoundation / WikiEduDashboard

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

Refactored Checkbox, TextAreaInput, WikiSelect, TextInput, CourseForm #5737

Closed prathamVaidya closed 2 months ago

prathamVaidya commented 3 months ago

What this PR does

Part of #5393 (Component refactor for React class components)

Changed Legacy Class Components to React functional components for all the components imported in course_form.jsx

Components Refactored:

Also, moved string literals to i18n in course_form.jsx.

Screenshots

wiki_select.jsx : working ✅

image

text_input.jsx : working ✅

image

text_area.jsx : working ✅

image

image

checkbox.jsx was also working though not used anywhere. I imported and tested it separately.

ragesoss commented 2 months ago

I strongly prefer smaller PRs, especially for refactoring. One PR per component makes it much easier for me to review, as my eyes glaze over when reviewing many component refactors at once.