-
Notifications
You must be signed in to change notification settings - Fork 678
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
Cant import static ranges #196
Comments
You should create predefined ranges with const predefinedRanges = createStaticRanges([
{
label: 'Today',
range() {
return {
startDate: defineds.startOfToday,
endDate: defineds.endOfToday,
};
},
}
]); But you shouldn't get undefined when importing |
Yes, I installed using next tag. |
@suhailsulu you're right. It should be |
Just FYI, if you want to extend the default static ranges, here's a working code sample:
|
Recently it is not accepting the above structure Can someone help me how to use this. When i place this the selected range is not getting highlited |
When I try to import staticRanges
import { staticRanges} from 'react-date-range',
I am getting undefined, so I couldn't create my own static ranges
The text was updated successfully, but these errors were encountered: