diff --git a/client/src/components/UserProfile.js b/client/src/components/UserProfile.js index 2e701626c..0bcec7d79 100644 --- a/client/src/components/UserProfile.js +++ b/client/src/components/UserProfile.js @@ -1,43 +1,86 @@ -import React, { Component } from 'react'; -import {graphql} from 'react-apollo'; -import {getUserProfileQuery} from '../queries/queries'; +import React, { Component } from 'react' +import {graphql, compose} from 'react-apollo' +import {getUserProfileQuery} from '../queries/queries' + +// Materia UI + +import { withStyles } from '@material-ui/core/styles' +import Typography from '@material-ui/core/Typography' +import Grid from '@material-ui/core/Grid' +import Paper from '@material-ui/core/Paper' + +const styles = theme => ({ + root: { + flexGrow: 1, + padding: 60, + margin: 2 + }, + card: { + maxWidth: 345, + paddingTop: '30' + }, + media: { + height: 0, + paddingTop: '56.25%', // 16:9, + marginTop: '30' + }, + horizontal: + { + display: 'inline', + margin: theme.spacing.unit + }, + appBar: { + position: 'relative' + }, + flex: { + flex: 1 + }, + grid: { + paddingTop: '30', + marginTop: '30' + } +}) class UserProfile extends Component { - displayUserProfile(){ + displayUserProfile () { + const {user} = this.props.data - const {user} = this.props.data; - - if(user){ - return( -
{ user.firstName }
-{ user.lastName }
-{ user.role.name }
-{ user.firstName }
+{ user.lastName }
+{ user.role.name }
+