From 7c7f98b4486a68ae24e340a48d39257ac47b00bb Mon Sep 17 00:00:00 2001 From: xomimishka Date: Fri, 30 May 2025 14:04:01 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B2=D0=BD=D0=B5=D1=81=D0=BB=D0=B0=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=B2=20wppost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widgets/WpPost/WpPost.tsx | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/widgets/WpPost/WpPost.tsx b/src/widgets/WpPost/WpPost.tsx index 57d97c5..ab4c9ce 100644 --- a/src/widgets/WpPost/WpPost.tsx +++ b/src/widgets/WpPost/WpPost.tsx @@ -24,6 +24,8 @@ export default function WpPost({ const title = post.title; const customComponent = getCustomProject(title); + const isSpecialTitle = title === "Программно-аппаратный комплекс для мониторинга управления мусорных контейнеров"; + return (
{customComponent ? ( @@ -31,14 +33,24 @@ export default function WpPost({ ) : ( <> -

{post.title}

+

{title}

{Array.isArray(post.content) && post.content.map((el, index) => { if (el.type === "mediablock") { - return ; + const media = ; + return isSpecialTitle ? media : ( + + {media} + + ); } else if (el.type === "slider") { - return ; + const slider = ; + return isSpecialTitle ? slider : ( + + {slider} + + ); } return ( @@ -51,4 +63,4 @@ export default function WpPost({ )}
); -} \ No newline at end of file +}