Skip to content

Commit

Permalink
feat: 불필요한 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
00kang committed Oct 1, 2024
1 parent 292a7e7 commit ca649f0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/TravelSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@ const TravelSection = () => {
const nextTravel = () => {
const newIndex = (currentIndex + 1) % travelOptions.length;
setCurrentIndex(newIndex);
getCardInfo(newIndex);
};

const prevTravel = () => {
const newIndex = (currentIndex - 1 + travelOptions.length) % travelOptions.length;
setCurrentIndex(newIndex);
getCardInfo(newIndex);
};

const handleCardClick = (link: string) => {
Expand Down

0 comments on commit ca649f0

Please sign in to comment.