fix: build error

This commit is contained in:
Hossein Mehrabi 2023-08-29 22:24:27 +03:30
parent cf71f491c1
commit f734a277fd
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
1 changed files with 8 additions and 3 deletions

View File

@ -1,15 +1,15 @@
import { ArticleHeading } from '@/components/Article/Article.Heading' import { ArticleHeading } from '@/components/Article/Article.Heading'
import { Authors } from '@/components/Authors' import { Authors } from '@/components/Authors'
import { Tags } from '@/components/Tags' import { TagsAndSocial } from '@/components/TagsAndSocial'
import { useArticleContainerContext } from '@/containers/ArticleContainer.Context' import { useArticleContainerContext } from '@/containers/ArticleContainer.Context'
import { useIntersectionObserver } from '@/utils/ui.utils' import { useIntersectionObserver } from '@/utils/ui.utils'
import { Typography } from '@acid-info/lsd-react' import { Typography } from '@acid-info/lsd-react'
import styled from '@emotion/styled' import styled from '@emotion/styled'
import { ArticleBlocksOrders } from '../../../configs/data.configs'
import { LPE } from '../../../types/lpe.types' import { LPE } from '../../../types/lpe.types'
import { ArticleImageBlockWrapper } from '../Article.ImageBlockWrapper' import { ArticleImageBlockWrapper } from '../Article.ImageBlockWrapper'
import ArticleStats from '../Article.Stats' import ArticleStats from '../Article.Stats'
import ArticleSummary from './Article.Summary' import ArticleSummary from './Article.Summary'
import { TagsAndSocial } from '@/components/TagsAndSocial'
export type ArticleHeaderProps = LPE.Article.Data export type ArticleHeaderProps = LPE.Article.Data
@ -67,7 +67,12 @@ const ArticleHeader = ({
className={'mobileSummary'} className={'mobileSummary'}
showLabel={false} showLabel={false}
/> />
{coverImage && <ArticleImageBlockWrapper image={coverImage} />} {coverImage && (
<ArticleImageBlockWrapper
image={coverImage}
order={ArticleBlocksOrders.cover}
/>
)}
<ArticleSummary <ArticleSummary
summary={summary} summary={summary}
className={'desktopSummary'} className={'desktopSummary'}