import React from 'react'; import { Checkbox, Divider, FormControl, FormControlLabel, FormGroup, FormLabel, Paper, TextField, } from '@material-ui/core'; import Avatar from '@material-ui/core/Avatar'; import { makeStyles } from '@material-ui/core/styles'; import { useCurrentIdentityQuery } from '../../components/CurrentIdentity/CurrentIdentity.generated'; import BugList from './BugList'; const useStyles = makeStyles((theme) => ({ main: { maxWidth: 1200, margin: 'auto', marginTop: theme.spacing(4), }, container: { display: 'flex', marginBottom: theme.spacing(1), marginRight: theme.spacing(2), marginLeft: theme.spacing(2), }, leftSidebar: { marginTop: theme.spacing(2), marginRight: theme.spacing(2), }, content: { marginTop: theme.spacing(5), marginRight: theme.spacing(4), padding: theme.spacing(3, 2), minWidth: 800, display: 'flex', backgroundColor: theme.palette.background.paper, }, rightSidebar: { marginTop: theme.spacing(5), flex: '0 0 200px', }, large: { width: theme.spacing(20), height: theme.spacing(20), }, control: { paddingBottom: theme.spacing(3), }, header: { ...theme.typography.h5, }, })); const Identity = () => { const classes = useStyles(); const { data } = useCurrentIdentityQuery(); const user = data?.repository?.userIdentity; console.log(user); return (

{user?.displayName ? user?.displayName : 'none'}

{user?.displayName.charAt(0).toUpperCase()}
Your account } />
{user?.displayName.charAt(0).toUpperCase()}
); }; export default Identity;