[hotfix] resolve imports in FullArticle

This commit is contained in:
ilya-bkv 2023-04-29 13:10:26 +03:00
parent 71b65a8370
commit 80876c5fc7

View File

@ -1,7 +1,7 @@
import { capitalize, formatDate } from '../../utils' import { capitalize, formatDate } from '../../utils'
import { Icon } from '../_shared/Icon' import { Icon } from '../_shared/Icon'
import { AuthorCard } from '../Author/Card' 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 type { Author, Shout } from '../../graphql/types.gen'
import MD from './MD' import MD from './MD'
import { SharePopup } from './SharePopup' import { SharePopup } from './SharePopup'
@ -13,7 +13,7 @@ import { useSession } from '../../context/session'
import VideoPlayer from './VideoPlayer' import VideoPlayer from './VideoPlayer'
import Slider from '../_shared/Slider' import Slider from '../_shared/Slider'
import { getPagePath } from '@nanostores/router' import { getPagePath } from '@nanostores/router'
import { router } from '../../stores/router' import { router, useRouter } from '../../stores/router'
import { useReactions } from '../../context/reactions' import { useReactions } from '../../context/reactions'
import { Title } from '@solidjs/meta' import { Title } from '@solidjs/meta'
import { useLocalize } from '../../context/localize' import { useLocalize } from '../../context/localize'
@ -84,7 +84,7 @@ export const FullArticle = (props: ArticleProps) => {
const body = createMemo(() => props.article.body) const body = createMemo(() => props.article.body)
const media = createMemo(() => { const media = createMemo(() => {
const mi = JSON.parse(props.article.media || '[]') const mi = JSON.parse(props.article.media || '[]')
console.debug(mi) console.debug('!!! media items', mi)
return mi return mi
}) })