diff --git a/src/components/Topic/Card.tsx b/src/components/Topic/Card.tsx index cbf85556..1bebbb9a 100644 --- a/src/components/Topic/Card.tsx +++ b/src/components/Topic/Card.tsx @@ -32,10 +32,8 @@ export const TopicCard = (props: TopicProps) => { const subscribe = async (really = true) => { if (really) { follow({ what: FollowingEntity.Topic, slug: topic().slug }) - // TODO: setSubscribers(topic().stat?.followers as number + 1) } else { unfollow({ what: FollowingEntity.Topic, slug: topic().slug }) - // TODO: setSubscribers(topic().stat?.followers as number - 1) } } return ( diff --git a/src/components/Views/Author.tsx b/src/components/Views/Author.tsx index bdb11661..59ce7e66 100644 --- a/src/components/Views/Author.tsx +++ b/src/components/Views/Author.tsx @@ -1,5 +1,5 @@ import { Show, createMemo } from 'solid-js' -import type { Author, Shout } from '../../graphql/types.gen' +import type { Author, Reaction, Shout } from '../../graphql/types.gen' import Row2 from '../Feed/Row2' import Row3 from '../Feed/Row3' import Beside from '../Feed/Beside' @@ -13,13 +13,16 @@ import '../../styles/Topic.scss' import { useStore } from '@nanostores/solid' import { useTopicsStore } from '../../stores/zine/topics' +// TODO: load reactions on client type AuthorProps = { authorArticles: Shout[] author: Author + // FIXME author topics fro server + // topics: Topic[] } export const AuthorPage = (props: AuthorProps) => { - const { getSortedArticles: articles, getArticlesByAuthor } = useArticlesStore({ + const { getSortedArticles: articles } = useArticlesStore({ sortedArticles: props.authorArticles }) const { getAuthorEntities: authors } = useAuthorsStore({ authors: [props.author] }) diff --git a/src/components/Views/Feed.tsx b/src/components/Views/Feed.tsx index 239b09b7..aea4e9ad 100644 --- a/src/components/Views/Feed.tsx +++ b/src/components/Views/Feed.tsx @@ -100,7 +100,7 @@ export const FeedPage = (props: FeedProps) => {