-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update time filter to use react-datetime
#5819
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5819 +/- ##
==========================================
- Coverage 63.73% 63.65% -0.09%
==========================================
Files 368 368
Lines 23221 23255 +34
Branches 2600 2606 +6
==========================================
+ Hits 14801 14804 +3
- Misses 8405 8438 +33
+ Partials 15 13 -2
Continue to review full report at Codecov.
|
This actually needs a bit more work — the state handling is broken. Working on it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this @betodealmeida and to unblock react 16!
looking great overall, just wanted to note that you could improve perf stuff further by defining bound functions for all of the myProp={() => this.setState(...) }
calls
* Update time filter to use react-datetime * Clean up code * Many small fixes and improvements * Fix small things (cherry picked from commit 6c9be9d)
* Update time filter to use react-datetime * Clean up code * Many small fixes and improvements * Fix small things
* Update time filter to use react-datetime * Clean up code * Many small fixes and improvements * Fix small things
I've updated the time filter to use
react-datetime
, sincereact-bootstrap-datetimepicker
was deprecated and doesn't work with React 16. Overall the new API is better — we no longer need to use refs to handle strings that are not parsed bymoment.js
, eg.I also cleaned the code a little bit, moving all the
bind
s out of therender
method.