-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: optimize date range picker component (#3592)
* refactor: optimize date range picker component - Extract PredefinedRanges into a separate component for better maintainability - Implement createRangeHelper factory function to reduce code duplication - Add memoization for predefined ranges to prevent unnecessary recalculations - Improve type safety with DateRangeGetter type - Standardize date comparison using startOfDay - Enhance UI with consistent button styling and layout Performance improvements: - Reduce redundant date calculations - Prevent unnecessary re-renders with useMemo - Centralize date range creation logic Technical improvements: - Better type safety - More maintainable code structure - Consistent date handling * deepscan * deepscan * deepscan * fix: memoize createRange function to prevent unnecessary re-renders in date-range-picker * deepscan * fix: conflit
- Loading branch information
1 parent
1c67350
commit 59ab502
Showing
3 changed files
with
139 additions
and
125 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,6 +110,7 @@ | |
"deserunt", | ||
"digitaloceanspaces", | ||
"dimesions", | ||
"Ipredefine", | ||
"discrepenancy", | ||
"dolor", | ||
"dolore", | ||
|
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
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