исправила карточки новостей

This commit is contained in:
xomimishka committed 2026-04-15 15:13:50 +03:00
1 parent 586d3c64e8
commit a600e91744
5 files changed
+88 -34

No files matched your search

+2 -1
View File
@@ -12,6 +12,7 @@ import Slider from "@/widgets/Slider/Slider";
export const vkWallUrl = "https://vk.com/skbkit?w=wall-172789021";
import { useEffect } from "react";
import { useLocation } from "react-router-dom";
import { stripHtmlTags } from "@/shared/utils/sanitizeText";
export const ScrollToTop = () => {
const { pathname } = useLocation();
@@ -86,7 +87,7 @@ function NewsItem() {
<meta name="robots" content="index,follow" />
</Helmet>
<PageHeader className="header">
<h1>{news.heading}</h1>
<h1>{stripHtmlTags(news.heading)}</h1>
</PageHeader>
<PageContent className="content" id="news-item-page">
{news.photos.length !== 0 &&