From 80876c5fc76dd672371be92d5c046fdc55c18958 Mon Sep 17 00:00:00 2001 From: ilya-bkv Date: Sat, 29 Apr 2023 13:10:26 +0300 Subject: [PATCH] [hotfix] resolve imports in FullArticle --- src/components/Article/FullArticle.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Article/FullArticle.tsx b/src/components/Article/FullArticle.tsx index 12d75651..681d270f 100644 --- a/src/components/Article/FullArticle.tsx +++ b/src/components/Article/FullArticle.tsx @@ -1,7 +1,7 @@ import { capitalize, formatDate } from '../../utils' import { Icon } from '../_shared/Icon' import { AuthorCard } from '../Author/Card' -import { createMemo, createSignal, For, Match, onMount, Show, Switch } from 'solid-js' +import { createEffect, createMemo, createSignal, For, Match, onMount, Show, Switch } from 'solid-js' import type { Author, Shout } from '../../graphql/types.gen' import MD from './MD' import { SharePopup } from './SharePopup' @@ -13,7 +13,7 @@ import { useSession } from '../../context/session' import VideoPlayer from './VideoPlayer' import Slider from '../_shared/Slider' import { getPagePath } from '@nanostores/router' -import { router } from '../../stores/router' +import { router, useRouter } from '../../stores/router' import { useReactions } from '../../context/reactions' import { Title } from '@solidjs/meta' import { useLocalize } from '../../context/localize' @@ -84,7 +84,7 @@ export const FullArticle = (props: ArticleProps) => { const body = createMemo(() => props.article.body) const media = createMemo(() => { const mi = JSON.parse(props.article.media || '[]') - console.debug(mi) + console.debug('!!! media items', mi) return mi })