-
Notifications
You must be signed in to change notification settings - Fork 958
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
feat(calendar): component implementation #153
Conversation
* fix(calendar): selection optimizations - selection changes prop * fix(calendar): selection optimizations with shouldComponentUpdate
* feat(calendar): apply styles
* feat(calendar/range): custom day render function * feat(calendar): update example
* fix(calendar): no-state-initialized warning * fix(calendar): day component key prop null-pointer
refactor(calendar): move props to types refactor(calendar): rk-typed styles apply
disabled: Text.propTypes.style, | ||
}), | ||
}), | ||
}; |
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.
linebreak
navigate: PropTypes.func.isRequired, | ||
}).isRequired, | ||
}; | ||
static data = [ |
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.
linebreak
const { start, end } = weekRange; | ||
return RkCalendarService.Date.isBetweenIncludingSafe(d, start, end); | ||
}; | ||
const isWasSelected = isInWeek(props.selected.start); |
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.
wasSelected
return RkCalendarService.Date.isBetweenIncludingSafe(d, start, end); | ||
}; | ||
const isWasSelected = isInWeek(props.selected.start); | ||
const isWillSelected = isInWeek(nextProps.selected.start); |
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.
change naming
|
||
function withBoundingMonths(weeks, activeMonth, isBounding, fallback) { | ||
let boundedWeeks = weeks; | ||
if (isShouldAddPrevBoundingMonth(boundedWeeks)) { |
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.
shouldAddPrevBoundingMonth
Short description of what this resolves: