Skip to content
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

Merged

Conversation

drodzewicz
Copy link
Collaborator

  • 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
@drodzewicz drodzewicz self-assigned this Sep 16, 2022
src/js/components/form-elements/DateFilter/index.jsx Outdated Show resolved Hide resolved
const [isFocused, setIsFocused] = useState(false);

const onChangeHandler = (date) => {
const val = !date || typeof date === 'string' ? date : date.format(dateFormat);
Copy link
Collaborator

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?

Copy link
Collaborator Author

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
@awalkowiak awalkowiak merged commit 216362f into feature/ui-redesign Sep 19, 2022
@awalkowiak awalkowiak deleted the OBPIH-4734-restyling-filters-date-picker-fields branch September 19, 2022 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants