diff --git a/src/components/username.tsx b/src/components/username.tsx index 404e4cb..7ab6d3d 100644 --- a/src/components/username.tsx +++ b/src/components/username.tsx @@ -65,13 +65,14 @@ export const UserComponent = ({ pubkey, name, image }: UserProps) => { const npub = hexToNpub(pubkey) const roboImage = `https://robohash.org/${npub}.png?set=set3` + const handleClick = (e: React.MouseEvent) => { + e.stopPropagation() + navigate(getProfileRoute(pubkey)) + } + return ( { - e.stopPropagation() - navigate(getProfileRoute(pubkey)) - }} > { borderStyle: 'solid', borderColor: `#${pubkey.substring(0, 6)}` }} + onClick={handleClick} /> { cursor: 'pointer', color: theme.palette.text.primary }} + onClick={handleClick} > {name}