Skip to content

Commit

Permalink
fix popup not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonk19 committed Aug 26, 2022
1 parent 165a590 commit faf8f85
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/Homepage/UnitRecommendation/_Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Carousel = () => {
<Box pt={8} pb={6}>
<Swiper slidesPerView={5} centeredSlides>
{units.map((unit, index) => (
<SwiperSlide key={unit.ext_id}>
<SwiperSlide key={unit.id}>
{({ isActive }) => {
if (isActive) {
setPosition(index);
Expand All @@ -42,7 +42,7 @@ const Carousel = () => {
})}
>
<TourPopup
id={unit.ext_id}
id={unit.id}
isRec
img={unit.logo}
label={unit.name}
Expand Down Expand Up @@ -73,7 +73,7 @@ const Carousel = () => {
label={unit.name}
position={position}
setPosition={setPosition}
key={unit.ext_id}
key={unit.id}
/>
))}
</Flex>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Homepage/UnitShowcase/_Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const Card = ({ img, label, onClick }: ICard) => (
}}
cursor="pointer"
onClick={onClick}
p="2"
>
<Center h="70%">
<Image
Expand All @@ -39,7 +40,7 @@ const Card = ({ img, label, onClick }: ICard) => (
/>
</Center>
<Flex h="30%" justifyContent="center" alignItems="center">
<Text fontFamily="Subheading" fontSize="4xl">
<Text fontFamily="Subheading" fontSize="3xl" textAlign="center">
{label}
</Text>
</Flex>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Homepage/UnitShowcase/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const UnitShowcase = () => {
{...getTransition('left', { delay: 0.5 * index, duration: 1 })}
>
<TourPopup
id={unit.ext_id}
id={unit.id}
isShowcase
img={unit.logo}
label={unit.name}
Expand Down

0 comments on commit faf8f85

Please sign in to comment.