Skip to content

Commit

Permalink
fix: sonar fail non-native component
Browse files Browse the repository at this point in the history
  • Loading branch information
maxvonlancaster committed Feb 26, 2024
1 parent f3c5e19 commit 8ecf6eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/common/components/CardText/CardText.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const CardText = ({
moreBtnText = 'Трохи ще...', title, text, subTitle, className, onBtnClick, moreBtnAsLink,
}:Props) => (
<div className={`cardTextContainer ${className}`}>
<div className="cardTextContainerTopPart" onClick={(e: any) => copyText(text)}>
<div className="cardTextContainerTopPart" onClick={(e: any) => copyText(text)} role="presentation">
<p className="cardTextContainerTitle">{title}</p>
{subTitle ? <p className="cardTextContainerSubTitle">{subTitle}</p> : <></>}
<p className="cardTextContainerText">{text}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const TimelineSlideCard = ({

return (
<div className="timelineItem">
<div className="timelineItemContent" onClick={(e: any) => copyText(description)}>
<div className="timelineItemContent" onClick={(e: any) => copyText(description)} role="presentation">
<p className="timelineItemMetadata">
{newDate}
{historicalContexts.map(({ id, title: ctxTitle }) => (
Expand Down

0 comments on commit 8ecf6eb

Please sign in to comment.