Show followers list

This commit is contained in:
ilya-bkv 2023-03-05 16:31:36 +03:00
parent a7b0df4b24
commit 1c1cfe9b40

View File

@ -95,7 +95,7 @@ export const AuthorView = (props: AuthorProps) => {
}) })
setCommented(data) setCommented(data)
} catch (error) { } catch (error) {
console.log('!!! error:', error) console.error('[getReactionsBy comment]', error)
} }
} }
}) })
@ -205,6 +205,13 @@ export const AuthorView = (props: AuthorProps) => {
</ul> </ul>
</div> </div>
</Match> </Match>
<Match when={searchParams().by === 'followed'}>
<div class="wide-container">
<ul class={stylesArticle.comments}>
<For each={followers()}>{(follower: Author) => <AuthorCard author={follower} />}</For>
</ul>
</div>
</Match>
<Match when={searchParams().by === 'rating'}> <Match when={searchParams().by === 'rating'}>
<Row1 article={sortedArticles()[0]} /> <Row1 article={sortedArticles()[0]} />
<Row2 articles={sortedArticles().slice(1, 3)} isEqual={true} /> <Row2 articles={sortedArticles().slice(1, 3)} isEqual={true} />