diff --git a/src/pages/homePage/Home.tsx b/src/pages/homePage/Home.tsx index 282c798c..2407350f 100644 --- a/src/pages/homePage/Home.tsx +++ b/src/pages/homePage/Home.tsx @@ -52,7 +52,9 @@ const Home = () => { 지역 할인 호텔 diff --git a/src/pages/homePage/itemCarousel/ItemCarousel.tsx b/src/pages/homePage/itemCarousel/ItemCarousel.tsx index b0ab3a74..f4a0dc44 100644 --- a/src/pages/homePage/itemCarousel/ItemCarousel.tsx +++ b/src/pages/homePage/itemCarousel/ItemCarousel.tsx @@ -71,7 +71,7 @@ const ItemCarousel = ({ {localeAndHotel.map( (item) => item[2].length && ( - + ), )} diff --git a/src/pages/homePage/itemCarousel/itemCarouselUnit/ItemCarouselUnit.tsx b/src/pages/homePage/itemCarousel/itemCarouselUnit/ItemCarouselUnit.tsx index 6fdde52d..8fa8399b 100644 --- a/src/pages/homePage/itemCarousel/itemCarouselUnit/ItemCarouselUnit.tsx +++ b/src/pages/homePage/itemCarousel/itemCarouselUnit/ItemCarouselUnit.tsx @@ -29,43 +29,43 @@ const ItemCarouselUnit = ({ item }: UnitProps) => { return ( - {hotel[0] && ( - onClickHandler(0)}> - + {hotel[1] && ( + onClickHandler(1)}> +
-

{hotel[0].hotelName}

-

{hotel[0].roomType}

+

{hotel[1].hotelName}

+

{hotel[1].roomType}

- {CHKIN0} ~ {CHKOUT0} + {CHKIN1} ~ {CHKOUT1}
-
{hotel[0].originalPrice}
+
{hotel[1].originalPrice}

- {priceFormat(hotel[0].salePrice)} 원 - {Math.floor(hotel[0].salePercentage * 100)}% + {priceFormat(hotel[1].salePrice)} 원 + {Math.floor(hotel[1].salePercentage * 100)}%

)} - {hotel[1] && ( - onClickHandler(1)}> - + {hotel[0] && ( + onClickHandler(0)}> +
-

{hotel[1].hotelName}

-

{hotel[1].roomType}

+

{hotel[0].hotelName}

+

{hotel[0].roomType}

- {CHKIN1} ~ {CHKOUT1} + {CHKIN0} ~ {CHKOUT0}
-
{hotel[1].originalPrice}
+
{hotel[0].originalPrice}

- {priceFormat(hotel[1].salePrice)} 원 - {Math.floor(hotel[1].salePercentage * 100)}% + {priceFormat(hotel[0].salePrice)} 원 + {Math.floor(hotel[0].salePercentage * 100)}%

diff --git a/src/pages/homePage/percentAnimator/PercentAnimator.tsx b/src/pages/homePage/percentAnimator/PercentAnimator.tsx index 2a920999..36c19ef6 100644 --- a/src/pages/homePage/percentAnimator/PercentAnimator.tsx +++ b/src/pages/homePage/percentAnimator/PercentAnimator.tsx @@ -14,8 +14,8 @@ const PercentAnimator = ({ {localeAndHotel.map( (item) => item[2].length !== 0 && ( - - {item[2][0]?.salePercentage === percent && ( + + {item[2][item[2].length - 1].salePercentage === percent && ( 최대 {Math.floor(percent * 100)}%