Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
hidden: hidden || false,
// onPress: onPress || function () { },
}
return (
)
}
const mapStateToProps = (state) => {
return {
tabBarNav: state.tabBarNav,
router: state.router,
}
}
export default connect(
mapStateToProps,
// mapDispatchToProps
)(Component)
const mapStateToProps = (state) => {
return {
tabBarNav: state.tabBarNav,
router: state.router,
}
}
// const mapDispatchToProps = (dispatch) => {
// return {
// onPress: (selectedTab) => {
// dispatch(updateState(selectedTab))
// }
// }
// }
export default connect(
mapStateToProps,
// mapDispatchToProps
)(Component)
}
function bindAction(dispatch) {
return {
tryGetProjects: () => dispatch(tryGetProjects()),
getProjectsReset: () => dispatch(getProjectsReset()),
tryGetRecommendedProjects: (user_id) => dispatch(tryGetRecommendedProjects(user_id)),
getRecommendedProjectsReset: () => dispatch(getRecommendedProjectsReset())
};
}
const mapStateToProps = state => ({
project: state.project
});
export default connect(
mapStateToProps,
bindAction
)(withStyles(homePageStyle)(HomePage));
isSearchingCourseInfo,
}
);
const mapDispatchToProps = dispatch => (
{
getCourse: courseId => dispatch(fetchCourseDetails(courseId)),
clearCourse: () => dispatch(updateCourseInfo(null)),
addToSchedule: section => dispatch(addSchedItem(section)),
removeFromSchedule: id => dispatch(removeSchedItem(id)),
setScrollPos: scrollPos => dispatch(updateScrollPos(scrollPos)),
}
);
export default connect(mapStateToProps, mapDispatchToProps)(Selector);
timeFocus: state.timeFocus,
range: state.range,
};
};
let mapDispatchToProps = (dispatch) => {
return {
setTimeFocus: (active, time, boxKey,keep) => dispatch(setTimeFocus(active, time, boxKey,keep)),
setRealTimeValue: (realTime, longTerm, value) => dispatch(setRealTimeValue(realTime, longTerm, value)),
setRangeDateHoursMinutes: (date, hours, minutes) => dispatch(setRangeDateHoursMinutes(date, hours, minutes)),
setRealTimeRangeStepValue: (realTime, longTerm, value, range, step) => dispatch(setRealTimeRangeStepValue(realTime, longTerm, value, range, step)),
setSearchCondition: (from, to, time) => dispatch(setSearchCondition(from, to, time)),
};
};
Line = connect(mapStateToProps, mapDispatchToProps)(Line);
export default withRouter(Line);
return {
account: state.account,
}
}
function mapDispatchToProps(dispatch, state) {
return {
enterToCourse: (text) => dispatch({
type: COURSES__COURSE_ENTERED,
courseId: state.courseId,
slideId: state.slideId,
}),
}
}
export default connect(mapStateToProps, mapDispatchToProps)(CommentSendForm);
function bindAction(dispatch) {
return {
tryPostPortfolio: (title, description, date, project_id, tags) => dispatch(tryPostPortfolio(title, description, date, project_id, tags)),
postPortfolioReset: () => dispatch(postPortfolioReset()),
tryGetTag: (tags) => dispatch(tryGetTag(tags)),
getTagReset: () => dispatch(getTagReset())
};
}
const mapStateToProps = state => ({
user: state.user,
project: state.project
});
export default connect(
mapStateToProps,
bindAction
)(withStyles(modalStyle)(AddPortfolioModal));
);
}
}
function mapStateToProps(state) {
return {
theme: state.theme.data
};
}
export default connect(mapStateToProps)(HomePage);
}
}
const mapStateToProps = state => {
return {
managerProfile: state.manager.data
};
};
const mapDispatchToProps = dispatch => {
return {
service: bindActionCreators({ ...managerService, goBack }, dispatch)
};
};
export default translate()(
connect(
mapStateToProps,
mapDispatchToProps
)(ManagerPage)
);