-
-
Notifications
You must be signed in to change notification settings - Fork 392
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
OBPIH-4734 Restyle date-picker #3472
OBPIH-4734 Restyle date-picker #3472
Conversation
drodzewicz
commented
Sep 16, 2022
- restyle date picker popup
- restyle data picker input
- create a separate DateFilter component
- restyle date picker popup - restyle data picker input - create a separate DateFilter component
const [isFocused, setIsFocused] = useState(false); | ||
|
||
const onChangeHandler = (date) => { | ||
const val = !date || typeof date === 'string' ? date : date.format(dateFormat); |
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.
I assume it is working how it should be, but could you explain what it is exactly doing?
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.
I copied this from the DateField component and looking at it again it looks unnecessary complicated so in the new commit I simplified it.
- fix relative path import in index.js - simplify onChangeHandler function - add selected date prop to DatePicker - fix eslint rule for button can be a child of button element