mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-04-01 00:19:45 +02:00
add back follow button
This commit is contained in:
parent
110712d149
commit
8a0934f096
@ -7,6 +7,7 @@ import { getUserDisplayName } from "../../../helpers/user-metadata";
|
||||
import { useCurrentAccount } from "../../../hooks/use-current-account";
|
||||
import { useUserMetadata } from "../../../hooks/use-user-metadata";
|
||||
import { UserProfileMenu } from "./user-profile-menu";
|
||||
import { UserFollowButton } from "../../../components/user-follow-button";
|
||||
|
||||
export default function Header({
|
||||
pubkey,
|
||||
@ -21,6 +22,8 @@ export default function Header({
|
||||
const account = useCurrentAccount();
|
||||
const isSelf = pubkey === account?.pubkey;
|
||||
|
||||
const showFollowButton = useBreakpointValue({ base: false, sm: true });
|
||||
|
||||
const showFullNip05 = useBreakpointValue({ base: false, md: true });
|
||||
|
||||
return (
|
||||
@ -42,6 +45,7 @@ export default function Header({
|
||||
onClick={() => navigate("/profile")}
|
||||
/>
|
||||
)}
|
||||
{showFollowButton && !isSelf && <UserFollowButton pubkey={pubkey} size="sm" />}
|
||||
<UserProfileMenu
|
||||
pubkey={pubkey}
|
||||
aria-label="More Options"
|
||||
|
Loading…
x
Reference in New Issue
Block a user