From fbeceb820d13fe6f98dd773139dc4dcc7739a12c Mon Sep 17 00:00:00 2001 From: Untone Date: Sat, 4 May 2024 20:22:29 +0300 Subject: [PATCH] postmegred-2 --- src/components/Author/AuthorBadge/AuthorBadge.tsx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/components/Author/AuthorBadge/AuthorBadge.tsx b/src/components/Author/AuthorBadge/AuthorBadge.tsx index d2968b53..c75648f5 100644 --- a/src/components/Author/AuthorBadge/AuthorBadge.tsx +++ b/src/components/Author/AuthorBadge/AuthorBadge.tsx @@ -1,6 +1,6 @@ import { openPage } from '@nanostores/router' import { clsx } from 'clsx' -import { Match, Show, Switch, createEffect, createMemo, createSignal, on } from 'solid-js' +import { Match, Show, Switch, createEffect, createMemo, createSignal } from 'solid-js' import { useFollowing } from '../../../context/following' import { useLocalize } from '../../../context/localize' @@ -27,8 +27,6 @@ type Props = { inviteView?: boolean onInvite?: (id: number) => void selected?: boolean - subscriptionsMode?: boolean - isFollowed?: boolean } export const AuthorBadge = (props: Props) => { const { mediaMatches } = useMediaQuery() @@ -72,14 +70,6 @@ export const AuthorBadge = (props: Props) => { return props.author.name }) - const [_isFollowed, setIsFollowed] = createSignal() - createEffect( - on( - () => props.isFollowed, - (followed) => setIsFollowed(followed?.value), - { defer: true }, - ), - ) const handleFollowClick = () => { requireAuthentication(() => { @@ -124,7 +114,7 @@ export const AuthorBadge = (props: Props) => {
- +
0}>
{t('PublicationsWithCount', { count: props.author.stat?.shouts ?? 0 })}