ita-social-projects / SpaceToStudy-Client

MIT License
22 stars 14 forks source link

Refactored: Simplified React Components by Extracting Function #2418 #2428

Closed Olenka-Hryk closed 1 month ago

Olenka-Hryk commented 2 months ago

Refactored: Simplified React Components by Extracting Function [ Close #2418 ]

This PR refactors the React components to improve code conciseness and maintainability. Specifically, it extracts previously defined functions from within the components and moves them to the file's top level or a new .handlers.ts file.

Additionally, I wrote the spec for CreateCourse.handlers.ts:

Current Test Coverage:

Screenshot 2024-09-05 at 18 11 50
sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
95.7% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud