feat: follow button

closes #100
This commit is contained in:
Kieran 2023-11-14 12:41:20 +00:00
parent 647dad14ac
commit dff9aaddaf
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 6 additions and 2 deletions

View File

@ -108,12 +108,12 @@ header .profile img {
}
}
button span.hide-on-mobile {
.hide-on-mobile {
display: none;
}
@media (min-width: 1020px) {
button span.hide-on-mobile {
.hide-on-mobile {
display: block;
}
}

View File

@ -26,6 +26,7 @@ import { useCurrentStreamFeed } from "hooks/current-stream-feed";
import { useStreamLink } from "hooks/stream-link";
import { FormattedMessage } from "react-intl";
import { useContext } from "react";
import { FollowButton } from "element/follow-button";
function ProfileInfo({ ev, goal }: { ev?: NostrEvent; goal?: TaggedNostrEvent }) {
const system = useContext(SnortContext);
@ -81,6 +82,9 @@ function ProfileInfo({ ev, goal }: { ev?: NostrEvent; goal?: TaggedNostrEvent })
<div className="profile-info">
<Profile pubkey={host ?? ""} />
<div className="flex g12">
<div className="hide-on-mobile" >
<FollowButton pubkey={host} />
</div>
{ev && (
<>
<ShareMenu ev={ev} />