Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
fix: no index youtube iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHieu01 committed Mar 22, 2024
1 parent a5f3970 commit 3ada943
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/containers/Testimonial/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ const Testimonial = () => {
/>
</g>
<defs>

<clipPath id="clip0_1810_7276">
<rect width="24" height="24" fill="white" />
</clipPath>
Expand All @@ -272,6 +273,7 @@ const Testimonial = () => {
if (item.type === 'youtube')
return (
<div key={i}>

<iframe
width="100%"
height="260"
Expand All @@ -281,6 +283,7 @@ const Testimonial = () => {
allowFullScreen
className="rounded-xl"
loading="lazy"
{...(item.type === 'youtube' ? { noindex: 'true' } : {})}
/>
</div>
)
Expand Down

0 comments on commit 3ada943

Please sign in to comment.