mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-15 01:16:22 +02:00
16 lines
464 B
JavaScript
16 lines
464 B
JavaScript
import { connect } from 'react-redux';
|
|
import AuthenticationComponent from './authentication-component';
|
|
import { unsecureLogin } from '../../store/user/actions';
|
|
import { fetchFeatureToggles } from '../../store/feature-actions';
|
|
|
|
const mapDispatchToProps = {
|
|
unsecureLogin,
|
|
fetchFeatureToggles,
|
|
};
|
|
|
|
const mapStateToProps = state => ({
|
|
user: state.user.toJS(),
|
|
});
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(AuthenticationComponent);
|