diff --git a/src/components/Article/FullArticle.tsx b/src/components/Article/FullArticle.tsx index 317acc88..643d17ec 100644 --- a/src/components/Article/FullArticle.tsx +++ b/src/components/Article/FullArticle.tsx @@ -7,8 +7,7 @@ import { createEffect, createMemo, createSignal, For, onMount, Show } from 'soli import type { Author, Reaction, Shout } from '../../graphql/types.gen' import { t } from '../../utils/intl' import { showModal } from '../../stores/ui' -import { useStore } from '@nanostores/solid' -import { session } from '../../stores/auth' +import { useAuthStore } from '../../stores/auth' import { incrementView } from '../../stores/zine/articles' import { renderMarkdown } from '@astrojs/markdown-remark' import { markdownOptions } from '../../../mdx.config' @@ -41,7 +40,7 @@ const formatDate = (date: Date) => { export const FullArticle = (props: ArticleProps) => { const [body, setBody] = createSignal(props.article.body?.startsWith('<') ? props.article.body : '') - const auth = useStore(session) + const { session } = useAuthStore() createEffect(() => { if (body() || !props.article.body) { @@ -180,12 +179,12 @@ export const FullArticle = (props: ArticleProps) => { )} - +
{t('To leave a comment you please')} {
- +