Updated datepicker popover to not close on date select
• Updated: - datepicker popover to not close on date select - close only if is not pro. in that case, show pro updgrade modal
This commit is contained in:
@@ -22,9 +22,8 @@ const mapStateToProps = (state) => ({
|
|||||||
|
|
||||||
const mapDispatchToProps = (dispatch) => ({
|
const mapDispatchToProps = (dispatch) => ({
|
||||||
setScheduledAt (date, isPro) {
|
setScheduledAt (date, isPro) {
|
||||||
dispatch(closePopover())
|
|
||||||
|
|
||||||
if (!isPro) {
|
if (!isPro) {
|
||||||
|
dispatch(closePopover())
|
||||||
return dispatch(openModal(MODAL_PRO_UPGRADE))
|
return dispatch(openModal(MODAL_PRO_UPGRADE))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user