From ad51d884a6926bc69073d1d5aaf584acd7db2c34 Mon Sep 17 00:00:00 2001 From: Lena Date: Mon, 15 Mar 2021 02:03:26 +0100 Subject: Make Link to User Page in Popup Menu #12 --- webui/src/pages/identity/Identity.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'webui/src/pages') diff --git a/webui/src/pages/identity/Identity.tsx b/webui/src/pages/identity/Identity.tsx index c089f2b7..22691b1c 100644 --- a/webui/src/pages/identity/Identity.tsx +++ b/webui/src/pages/identity/Identity.tsx @@ -49,20 +49,23 @@ const useStyles = makeStyles((theme) => ({ control: { paddingBottom: theme.spacing(3), }, + header: { + ...theme.typography.h5, + }, })); const Identity = () => { - // eslint-disable-next-line const classes = useStyles(); - // eslint-disable-next-line - const { loading, error, data } = useCurrentIdentityQuery(); + const { data } = useCurrentIdentityQuery(); const user = data?.repository?.userIdentity; console.log(user); return (
-

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

+

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

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