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) => {
-