This commit is contained in:
Luis Fernando Molina committed 2018-09-07 10:55:15 +02:00
1 parent db4402100f
commit 4b536dd4a9
3 files changed
+20 -13

No files matched your search

@@ -42,6 +42,11 @@ const styles = {
};
class ButtonAppBar extends Component {
componentDidMount() {
console.log('component did mount!');
}
render() {
const { classes } = this.props;
return (
@@ -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 (
<div className={classes.root}>
+14 -12
View File
@@ -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){