forked from Hacker0x01/react-datepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Improve Code Readability and Maintainability
In this commit, I've made the following enhancements to the code: 1. Change the test case of finding the disabled time units count to the finding the enabled time units as the module involves on the existence of the includeTimes 2. Moved the test case to find the enabled time units through aria-disabled attribute to the separate it block 3. Replaced the magic value 45 with the actual computation which resolves to the magic value, to make it more maintainable and readable Closes Hacker0x01#4334
- Loading branch information
Balaji Sridharan
committed
Oct 21, 2023
1 parent
7d07168
commit 7ada98d
Showing
1 changed file
with
41 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters