mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:59:45 +00:00
исправление ошибок мешающих build
This commit is contained in:
1 parent
1131ba9799
commit
b630f91533
14 files changed
+87
-100
No files matched your search
@@ -10,6 +10,7 @@ import { useNewsById } from "@/modules/news/hooks/useNewsById";
|
||||
import { PageContent, PageHeader } from "@/widgets/WpPost";
|
||||
import Slider from "@/widgets/Slider/Slider";
|
||||
export const vkWallUrl = "https://vk.com/skbkit?w=wall-172789021";
|
||||
|
||||
function NewsItem() {
|
||||
const params = useParams();
|
||||
const newsID = params.id;
|
||||
@@ -76,7 +77,7 @@ function NewsItem() {
|
||||
<h1>{news.heading}</h1>
|
||||
</PageHeader>
|
||||
<PageContent className="content" id="news-item-page">
|
||||
{news.photos.length !== 0 && <Slider images={news.photos} />}
|
||||
{news.photos.length !== 0 && <Slider images={news.photos} category="news"/>}
|
||||
{news.text.map((textRow, index) => (
|
||||
<p key={index} dangerouslySetInnerHTML={{ __html: textRow }} />
|
||||
))}
|
||||
|
||||
Reference in new issue
Block a user