Skip to content

Instantly share code, notes, and snippets.

@Oleg-Sulzhenko
Last active August 29, 2019 10:47
Show Gist options
  • Save Oleg-Sulzhenko/fc7b8e707d17aa675980b903f4cbf968 to your computer and use it in GitHub Desktop.
Save Oleg-Sulzhenko/fc7b8e707d17aa675980b903f4cbf968 to your computer and use it in GitHub Desktop.
import {connect} from "react-redux";
const mapStateToProps = state => {
return {
roles: state.user.user.roles,
roleConfigs: state.user.roleConfigs
}
};
const mapDispatchToProps = dispatch => {
return {
getZoom: zoomGet
}
};
export default connect(mapStateToProps, mapDispatchToProps)(CLASS_NAME);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment