mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
This is used by unleash server to show who changes what. By making this a required input allow us to make sure it is always set.
16 lines
364 B
JavaScript
16 lines
364 B
JavaScript
import { connect } from 'react-redux';
|
|
import UserComponent from './user-component';
|
|
import { updateUserName, save } from '../../store/user/actions';
|
|
|
|
|
|
const mapDispatchToProps = {
|
|
updateUserName,
|
|
save,
|
|
};
|
|
|
|
const mapStateToProps = (state) => ({
|
|
user: state.user.toJS(),
|
|
});
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(UserComponent);
|