diff --git a/client/src/components/Material-UI/ButtonAppBar.js b/client/src/components/Material-UI/ButtonAppBar.js index 8024fefe3..feccfc8e9 100644 --- a/client/src/components/Material-UI/ButtonAppBar.js +++ b/client/src/components/Material-UI/ButtonAppBar.js @@ -42,6 +42,11 @@ const styles = { }; class ButtonAppBar extends Component { + + componentDidMount() { + console.log('component did mount!'); + } + render() { const { classes } = this.props; return ( diff --git a/client/src/components/Material-UI/ProfileTabs.js b/client/src/components/Material-UI/ProfileTabs.js index e737d6c4f..c85de23e4 100644 --- a/client/src/components/Material-UI/ProfileTabs.js +++ b/client/src/components/Material-UI/ProfileTabs.js @@ -52,7 +52,7 @@ class ProfileTabs extends React.Component { const { classes } = this.props; const { value } = this.state; const { createDisabled } = this.state; - console.log(createDisabled); + return (
diff --git a/client/src/components/UpdateUser.js b/client/src/components/UpdateUser.js index d11c87404..c878095a9 100644 --- a/client/src/components/UpdateUser.js +++ b/client/src/components/UpdateUser.js @@ -4,18 +4,20 @@ import {graphql, compose} from 'react-apollo'; import {getRolesQuery, updateUserMutation, getUsersQuery} from '../queries/queries'; class UpdateUser extends Component { - constructor(props){ - super(props); - this.state = { - id: '5b90fc33ae71ee3798b2317d', // TODO this Id is the one that should be available to all components after the validation that the user is authenticated. - firstName: '', - lastName: '', - isDeveloper: 0, - isTrader: 0, - isDataAnalyst: 0, - roleId: '1' - }; - } + + constructor(props){ + super(props); + this.state = { + id: '5b90fc33ae71ee3798b2317d', // TODO this Id is the one that should be available to all components after the validation that the user is authenticated. + firstName: '', + lastName: '', + isDeveloper: 0, + isTrader: 0, + isDataAnalyst: 0, + roleId: '1' + }; + } + displayRoles(){ var data = this.props.getRolesQuery; // When there is more than one query binded to a single componente 'data' is replaced by thename of the query given below at the binding operation. if(data.loading){