-
-
Notifications
You must be signed in to change notification settings - Fork 515
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
Implement showDoubleView prop #248
Conversation
@@ -441,7 +450,7 @@ export default class Calendar extends Component { | |||
onClick={mergeFunctions(clickAction, onClickDay)} | |||
onClickWeekNumber={onClickWeekNumber} | |||
onMouseLeave={onMouseLeave} | |||
showFixedNumberOfWeeks={showFixedNumberOfWeeks} | |||
showFixedNumberOfWeeks={showFixedNumberOfWeeks || showDoubleView} |
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.
@wojtekmaj thanks for the great lib!
why was showFixedNumberOfWeeks
forced to true
in double view?
mind if I PR to remove this?
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.
This is because otherwise the UI would look quite bad with different amount of rows on each side.
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.
@wojtekmaj got it. so it's subjective. ex. priceline.com implements a dual view without locking down # of weeks.
are you open to a PR to remove this?
we can make showFixedNumberOfWeeks
default to true when showDoubleView
is true. but can be overridden explicitly. so it won't be a breaking change.
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 like this idea.
* Implement showDoubleView * Fix tests for Navigation component * Add unit tests for showDoubleView
Closes #82