add back follow button

This commit is contained in:
hzrd149 2023-08-24 10:47:50 -05:00
parent 110712d149
commit 8a0934f096

View File

@ -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"