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

DateRangePickerCalendar doesn't work. #80

Open
danielweil opened this issue Sep 2, 2021 · 2 comments
Open

DateRangePickerCalendar doesn't work. #80

danielweil opened this issue Sep 2, 2021 · 2 comments

Comments

@danielweil
Copy link

Hey, thanks for the awesome and lightweight package!

I have been trying to use DateRangePickerCalendar with my popover component as I did with DatePickerCalendar component, but both onStartDateChange and onEndDateChange don't trigger any actions. Typescript is giving me errors, but I think it's only about types, but it didn't work. I tried using the exact example in the docs to see if I was doing something wrong but it still didn't work.

Thanks for the help!

@danielweil
Copy link
Author

Just figured out that the problema is START_DATE constant is not being defined and is not able to be found by Typescript. Declaring in my component makes it work.

@lightwave
Copy link

Perhaps add the following to react-nice-dates/index.d.ts?

declare const START_DATE: string;
declare const END_DATE: string;

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

No branches or pull requests

2 participants