auth0-extensions/auth0-sso-dashboard-extension

View on GitHub
client/utils/connectContainer.js

Summary

Maintainability
A
0 mins
Test Coverage
import { connect } from 'react-redux';

const defaultMapStateToProps = (state) => state;
const defaultMapActionsToProps = { };

export default function connectContainer(container) {
  return connect(container.stateToProps || defaultMapStateToProps, container.actionsToProps || defaultMapActionsToProps)(container);
}