diff --git a/src/components/gathering/read/GatheringRecommendationList.tsx b/src/components/gathering/read/GatheringRecommendationList.tsx index 3854898b..5f90f7db 100644 --- a/src/components/gathering/read/GatheringRecommendationList.tsx +++ b/src/components/gathering/read/GatheringRecommendationList.tsx @@ -3,6 +3,7 @@ import { GatheringRecommend } from "@/types/GatheringDto"; import GatheringItem from "../../common/GatheringItem"; import useAuthStore from "@/store/authStore"; +import LottieNotFound from "@/components/common/lottie/LottieNotFound"; const GatheringRecommendationList = ({ data, @@ -14,20 +15,26 @@ const GatheringRecommendationList = ({ return (

추천 모임 정보

-
- {data.map((i, index) => ( - 0 - } - /> - ))} -
+ {data.length === 0 ? ( +
+ +
+ ) : ( +
+ {data.map((i, index) => ( + 0 + } + /> + ))} +
+ )}
); }; diff --git a/src/components/informations/detail/RecommendationList.tsx b/src/components/informations/detail/RecommendationList.tsx index 3af00528..f2ebad49 100644 --- a/src/components/informations/detail/RecommendationList.tsx +++ b/src/components/informations/detail/RecommendationList.tsx @@ -1,3 +1,4 @@ +import LottieNotFound from "@/components/common/lottie/LottieNotFound"; import InformationItemContainer from "@/containers/common/InformationItemContainer"; import { InformationDetailDto } from "@/types/InformationDto"; @@ -9,22 +10,28 @@ const RecommendationList = ({ data }: Props) => { return (

추천 정보

-
- {data.recommendInformation.map((value, index) => ( - - ))} -
+ {data.recommendInformation.length === 0 ? ( +
+ +
+ ) : ( +
+ {data.recommendInformation.map((value, index) => ( + + ))} +
+ )}
); };