From 1c1cfe9b40dd71f1915ed67e0062f257d31a9da2 Mon Sep 17 00:00:00 2001 From: ilya-bkv Date: Sun, 5 Mar 2023 16:31:36 +0300 Subject: [PATCH 1/2] Show followers list --- src/components/Views/Author.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/Views/Author.tsx b/src/components/Views/Author.tsx index 2d46b85e..518267db 100644 --- a/src/components/Views/Author.tsx +++ b/src/components/Views/Author.tsx @@ -95,7 +95,7 @@ export const AuthorView = (props: AuthorProps) => { }) setCommented(data) } catch (error) { - console.log('!!! error:', error) + console.error('[getReactionsBy comment]', error) } } }) @@ -205,6 +205,13 @@ export const AuthorView = (props: AuthorProps) => { + +
+
    + {(follower: Author) => } +
+
+
From 9b22627908a6e82e0b3c086967e07a3b080a3353 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Fri, 24 Mar 2023 00:39:13 +0300 Subject: [PATCH 2/2] Followers list on authors page. Replaced "compact" props with "hideWriteButton" in the author card component. --- src/components/Article/Comment.tsx | 1 - src/components/Article/FullArticle.tsx | 12 +++++++----- src/components/Author/Card.tsx | 4 ++-- src/components/Author/Full.tsx | 2 +- src/components/Feed/Beside.tsx | 2 +- src/components/Views/Author.tsx | 12 +++++++++--- src/components/Views/Feed.tsx | 4 ++-- 7 files changed, 22 insertions(+), 15 deletions(-) diff --git a/src/components/Article/Comment.tsx b/src/components/Article/Comment.tsx index 63ef6f9e..268710c9 100644 --- a/src/components/Article/Comment.tsx +++ b/src/components/Article/Comment.tsx @@ -101,7 +101,6 @@ export const Comment = (props: Props) => { { )} -
+ +
+
@@ -254,7 +256,7 @@ export const FullArticle = (props: ArticleProps) => { {(a) => (
- +
)}
diff --git a/src/components/Author/Card.tsx b/src/components/Author/Card.tsx index 929942f6..9e8bdddb 100644 --- a/src/components/Author/Card.tsx +++ b/src/components/Author/Card.tsx @@ -16,7 +16,7 @@ import { useLocalize } from '../../context/localize' interface AuthorCardProps { caption?: string - compact?: boolean + hideWriteButton?: boolean hideDescription?: boolean hideFollow?: boolean hasLink?: boolean @@ -166,7 +166,7 @@ export const AuthorCard = (props: AuthorCardProps) => {
- +