Skip to content

Commit

Permalink
✨ feat: change link tag to a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
chaaerim committed Feb 25, 2024
1 parent 217721f commit 9bfe51f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/common/components/NoticeSlider/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use client';

import Link from 'next/link';
import { useRef, useState } from 'react';
import Slider from 'react-slick';

Expand Down Expand Up @@ -43,7 +42,7 @@ export const NoticeSlider = ({ images }: NoticeSliderProp) => {
afterChange={(index) => handleAfterChange(index + 1)}
>
{images?.map(({ imageSrc, url }) => (
<Link
<a
key={imageSrc}
target="_blank"
rel="noreferrer noopener"
Expand All @@ -55,7 +54,7 @@ export const NoticeSlider = ({ images }: NoticeSliderProp) => {
alt="notice banner"
src={imageSrc}
/>
</Link>
</a>
))}
</Slider>
{images.length > 1 && (
Expand Down

0 comments on commit 9bfe51f

Please # to comment.