diff --git a/webui/src/pages/identity/Identity.tsx b/webui/src/pages/identity/Identity.tsx index ef23e46d..c089f2b7 100644 --- a/webui/src/pages/identity/Identity.tsx +++ b/webui/src/pages/identity/Identity.tsx @@ -1,31 +1,128 @@ import React from 'react'; -import { MenuItem, MenuList } from '@material-ui/core'; +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'; - -const useStyles = makeStyles((theme) => ({})); +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), + }, +})); const Identity = () => { + // eslint-disable-next-line const classes = useStyles(); + // eslint-disable-next-line const { loading, error, data } = useCurrentIdentityQuery(); const user = data?.repository?.userIdentity; console.log(user); return ( -
-

Profile

- - {user?.displayName.charAt(0).toUpperCase()} - - +
+
+
+

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

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