aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src
diff options
context:
space:
mode:
authorLena <lena.becker-3@mni.thm.de>2021-03-12 02:06:09 +0100
committerSascha <GlancingMind@outlook.com>2021-04-13 19:07:57 +0200
commit1808ff432b48d10bc14eaf17471289d19f3e1b0d (patch)
tree1d015c49e92d7271dab05eb0c263b8fd2cd0db56 /webui/src
parent454f4e5962647115b8871ede29fc29d4da5fe289 (diff)
downloadgit-bug-1808ff432b48d10bc14eaf17471289d19f3e1b0d.tar.gz
Add very badly styled user details #12
Diffstat (limited to 'webui/src')
-rw-r--r--webui/src/pages/identity/Identity.tsx18
1 files changed, 17 insertions, 1 deletions
diff --git a/webui/src/pages/identity/Identity.tsx b/webui/src/pages/identity/Identity.tsx
index d936068b..ef23e46d 100644
--- a/webui/src/pages/identity/Identity.tsx
+++ b/webui/src/pages/identity/Identity.tsx
@@ -1,5 +1,7 @@
import React from 'react';
+import { MenuItem, MenuList } 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';
@@ -11,7 +13,21 @@ const Identity = () => {
const { loading, error, data } = useCurrentIdentityQuery();
const user = data?.repository?.userIdentity;
console.log(user);
- return <main></main>;
+ return (
+ <main>
+ <h1>Profile</h1>
+ <Avatar src={user?.avatarUrl ? user.avatarUrl : undefined}>
+ {user?.displayName.charAt(0).toUpperCase()}
+ </Avatar>
+ <ul>
+ <li>Name: {user?.name ? user?.name : 'none'}</li>
+ <li title={user?.id}>Id: {user?.humanId ? user?.humanId : 'none'}</li>
+ <li>Email: {user?.email ? user?.email : 'none'}</li>
+ <li>Login: {user?.login ? user?.login : 'none'}</li>
+ <li>Protected: {user?.isProtected}</li>
+ </ul>
+ </main>
+ );
};
export default Identity;