diff --git a/packages/app/src/Element/FollowListBase.tsx b/packages/app/src/Element/FollowListBase.tsx index b043036..5eaa3e4 100644 --- a/packages/app/src/Element/FollowListBase.tsx +++ b/packages/app/src/Element/FollowListBase.tsx @@ -10,8 +10,10 @@ import messages from "./messages"; export interface FollowListBaseProps { pubkeys: HexKey[]; title?: ReactNode | string; + showFollowAll?: boolean; + showAbout?: boolean; } -export default function FollowListBase({ pubkeys, title }: FollowListBaseProps) { +export default function FollowListBase({ pubkeys, title, showFollowAll, showAbout }: FollowListBaseProps) { const publisher = useEventPublisher(); async function followAll() { @@ -21,14 +23,16 @@ export default function FollowListBase({ pubkeys, title }: FollowListBaseProps) return (
-
-
{title}
- -
+ {(showFollowAll ?? true) && ( +
+
{title}
+ +
+ )} {pubkeys?.map(a => ( - + ))}
); diff --git a/packages/app/src/Pages/ProfilePage.tsx b/packages/app/src/Pages/ProfilePage.tsx index 8b38673..0a9d890 100644 --- a/packages/app/src/Pages/ProfilePage.tsx +++ b/packages/app/src/Pages/ProfilePage.tsx @@ -218,16 +218,10 @@ export default function ProfilePage() { } case FOLLOWS: { - return ( -
- {follows.map(a => ( - - ))} -
- ); + return ; } case FOLLOWERS: { - return ; + return ; } case MUTED: { return ;