From 8ecf6ebd653a6928517ebd1c937d9f7c45aee81f Mon Sep 17 00:00:00 2001 From: maxvonlancaster Date: Mon, 26 Feb 2024 15:48:03 +0200 Subject: [PATCH] fix: sonar fail non-native component --- src/app/common/components/CardText/CardText.component.tsx | 2 +- .../TimelineBlock/TimelineItem/TimelineItem.component.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/common/components/CardText/CardText.component.tsx b/src/app/common/components/CardText/CardText.component.tsx index 39f5040b1..d7c648b1a 100644 --- a/src/app/common/components/CardText/CardText.component.tsx +++ b/src/app/common/components/CardText/CardText.component.tsx @@ -20,7 +20,7 @@ const CardText = ({ moreBtnText = 'Трохи ще...', title, text, subTitle, className, onBtnClick, moreBtnAsLink, }:Props) => (
-
copyText(text)}> +
copyText(text)} role="presentation">

{title}

{subTitle ?

{subTitle}

: <>}

{text}

diff --git a/src/features/StreetcodePage/TimelineBlock/TimelineItem/TimelineItem.component.tsx b/src/features/StreetcodePage/TimelineBlock/TimelineItem/TimelineItem.component.tsx index fe9eae820..8edb3a17a 100644 --- a/src/features/StreetcodePage/TimelineBlock/TimelineItem/TimelineItem.component.tsx +++ b/src/features/StreetcodePage/TimelineBlock/TimelineItem/TimelineItem.component.tsx @@ -60,7 +60,7 @@ const TimelineSlideCard = ({ return (
-
copyText(description)}> +
copyText(description)} role="presentation">

{newDate} {historicalContexts.map(({ id, title: ctxTitle }) => (