1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00
unleash.unleash/frontend/src/component/user/user-container.jsx
ivaosthu 67bdb16659 Show a dialog if the username cookie is not set.
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.
2016-11-24 21:32:29 +01:00

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);