-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(date picker): Fix lint errors in datepicker and refactor set…
…ExcludedDates method (#1113) * style(date picker): fix all linting errors that dont require a refactor * refactor(date picker): refactor setExcludedDates for readability and to appease eslint The large map function in the setExcldedDates method was hard to read, and eslint didn't like it didn't have an obvious return value. This commit refactors part of the map into a parseDateRangeString function making the code much more readable and control flow more obvious.
- Loading branch information
Showing
1 changed file
with
49 additions
and
45 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