--- a/client/src/components/GroupForm.js Thu Aug 03 09:44:37 2017 +0200
+++ b/client/src/components/GroupForm.js Thu Aug 03 17:33:00 2017 +0200
@@ -4,6 +4,7 @@
import { FormGroup, FormControl, Button, InputGroup, HelpBlock, Glyphicon } from 'react-bootstrap';
import * as authActions from '../actions/authActions';
import * as sessionsActions from '../actions/sessionsActions';
+import { getOnline, getCreateGroup } from '../selectors/authSelectors';
class GroupForm extends Component {
@@ -91,8 +92,8 @@
function mapStateToProps(state, props) {
return {
- createGroup: state.get('createGroup'),
- online: state.getIn(['status', 'online']),
+ createGroup: getCreateGroup(state),
+ online: getOnline(state),
};
}