Skip to content

Commit db7f918

Browse files
halionazCopilot
andauthored
Update src/features/home/components/Banner/index.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4ba7531 commit db7f918

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/features/home/components/Banner/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ const Banner = () => {
2626
>
2727
{data.map((item, index) => (
2828
<SwiperSlide key={`${item.title}-${index}`}>
29-
<a href={item.link} target="_blank" rel="noopener noreferrer">
29+
{item.link ? (
30+
<a href={item.link} target="_blank" rel="noopener noreferrer">
31+
<img className={s.Image} src={item.src} alt={item.title} />
32+
</a>
33+
) : (
3034
<img className={s.Image} src={item.src} alt={item.title} />
31-
</a>
35+
)}
3236
</SwiperSlide>
3337
))}
3438
</Swiper>

0 commit comments

Comments
 (0)