-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
make nav buttons optional #1160
Conversation
I think |
I'm working on this! Today hopefully. :) I'll take a look at this PR today! |
8c812f2
to
785c5a1
Compare
785c5a1
to
2ee37da
Compare
@majapw do you mean this new prop will be useless once that feature is added? Or just that that one use case will be solved by your work? I think that this prop could still be useful, so that users don't have to create their own |
2ee37da
to
afd3e36
Compare
Also, @majapw, any idea what the travis failures are? Seems to be related to Node 6... but I have no idea why that would be the case or how the error message relates to this PR |
@amhunt it's an npm 6 bug in node 6; it should be fixed now (by bypassing the broken part with an env var in our travis-ci). i'll rerun your errored builds. |
@majapw ptal :) |
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.
Seems reasonable to me.
Summary
Beyond would like to be able to render our own nav buttons completely (rather than just be able to render inside of the existing nav button boxes). I believe that we can do this completely outside of the component by just adding a button that changes the number of months passed to
DayPickerRangeController
. However, to do this, we do not want to render the existingreact-dates
nav buttons. This adds a boolean prop that makes the nav buttons optional.This should also be helpful if people want to display only a couple of months and not allow users to move infinitely into the future (or any other custom navigation features).
Reviewers
@majapw
cc: @ljharb
Storybook example of
vertical_scrollable
orientation (didn't exist before)Storybook example of new
noNavButtons
prop