"Avoid using magic numbers or hard-coded values. Instead, use constants or variables to improve code readability and maintainability."
Description
This PR replaces the hard-coded values for the right positions of the day buttons in the src/SEQTA.js file with constants. This change improves the readability and maintainability of the code.
Summary of Changes
Added two constants, RIGHT_POSITION_1 and RIGHT_POSITION_2, at the top of the src/SEQTA.js file to define the right positions of the day buttons.
Updated the makeLessonDiv function in the src/SEQTA.js file to use the defined constants for the right positions of the day buttons in the style attribute.
Replaced the hard-coded values with the defined constants in the style attribute of the day buttons.
These changes ensure that the right positions of the day buttons are defined using constants, making the code more maintainable and easier to update in the future.
PR Feedback (click)
I created this PR to address this rule:
"Avoid using magic numbers or hard-coded values. Instead, use constants or variables to improve code readability and maintainability."
Description
This PR replaces the hard-coded values for the right positions of the day buttons in the
src/SEQTA.js
file with constants. This change improves the readability and maintainability of the code.Summary of Changes
RIGHT_POSITION_1
andRIGHT_POSITION_2
, at the top of thesrc/SEQTA.js
file to define the right positions of the day buttons.makeLessonDiv
function in thesrc/SEQTA.js
file to use the defined constants for the right positions of the day buttons in thestyle
attribute.style
attribute of the day buttons.These changes ensure that the right positions of the day buttons are defined using constants, making the code more maintainable and easier to update in the future.