Skip to content

Commit

Permalink
fix: 변수 오타 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
llddang committed Jun 29, 2024
1 parent 2a3f33a commit f6235f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/containers/main/TeamRankSlider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ const TeamRankSlider = () => {
onSwiper={(e) => setSwiper(e)}
onSlideChange={(e) => setSwiperIndex(e.activeIndex)}
>
{teamRank.map((team, _) => (
{teamRank.map((team, idx) => (
<SwiperSlide key={team.teamReferenceResponse.id} style={{ width: 'fit-content' }}>
<Box
overflow="hidden"
w={{ base: '450px', lg: '600px', '2xl': '720px' }}
h={{ base: '300px', lg: '360px', '2xl': '430px' }}
bg="rgba(255, 255, 255, 0.1)"
borderRadius="30"
onClick={() => slideOnClick(_, team.teamReferenceResponse.id)}
onClick={() => slideOnClick(idx, team.teamReferenceResponse.id)}
>
<TeamCard
rank={team.rank}
Expand All @@ -76,7 +76,7 @@ const TeamRankSlider = () => {
bg={idx === swiperIndex ? 'white' : 'transparent'}
border="2px solid white"
borderRadius="100%"
onClick={() => swiper?.slideTo(_)}
onClick={() => swiper?.slideTo(idx)}
/>
))}
</Flex>
Expand Down

0 comments on commit f6235f8

Please sign in to comment.