diff --git a/src/components/username.tsx b/src/components/username.tsx index 001382b..fd6cc89 100644 --- a/src/components/username.tsx +++ b/src/components/username.tsx @@ -1,4 +1,6 @@ import { Typography, IconButton } from '@mui/material' +import { useSelector } from 'react-redux' +import { State } from '../store/rootReducer' type Props = { username: string @@ -7,17 +9,28 @@ type Props = { } const Username = ({ username, avatarContent, handleClick }: Props) => { + const hexKey = useSelector((state: State) => state.auth.usersPubkey) + return ( - user-avatar + user-avatar