diff --git a/src/element/FollowsYou.tsx b/src/element/FollowsYou.tsx index 1a6fe38b..88280e27 100644 --- a/src/element/FollowsYou.tsx +++ b/src/element/FollowsYou.tsx @@ -21,7 +21,7 @@ export default function FollowsYou({ pubkey }: FollowsYouProps ) { return ( <> - { followsMe ?
follows you
: null } + { followsMe ? follows you : null } ) } diff --git a/src/pages/ProfilePage.tsx b/src/pages/ProfilePage.tsx index f143d629..7efd2217 100644 --- a/src/pages/ProfilePage.tsx +++ b/src/pages/ProfilePage.tsx @@ -20,7 +20,7 @@ import FollowersList from "../element/FollowersList"; import FollowsList from "../element/FollowsList"; import { RootState } from "../state/Store"; import { HexKey } from "../nostr"; -import FollowsYou from "../element/FollowsYou" +import FollowsYou from "../element/FollowsYou" enum ProfileTab { Notes = "Notes", @@ -51,18 +51,11 @@ export default function ProfilePage() {

{user?.display_name || user?.name || 'Nostrich'}

{user?.nip05 && } - { followsYou() } + ) } - function followsYou(){ - return ( -
-
{ }
-
- ) - } - + function bio() { const lnurl = extractLnAddress(user?.lud16 || user?.lud06 || ""); return ( @@ -93,7 +86,7 @@ export default function ProfilePage() { function tabContent() { switch (tab) { case ProfileTab.Notes: - return ; + return ; case ProfileTab.Follows: { if (isMe) { return ( @@ -115,7 +108,7 @@ export default function ProfilePage() { function avatar() { return (
- +
) }