diff --git a/src/components/gathering/read/GatheringRecommendationList.tsx b/src/components/gathering/read/GatheringRecommendationList.tsx index 4ea86d29..3854898b 100644 --- a/src/components/gathering/read/GatheringRecommendationList.tsx +++ b/src/components/gathering/read/GatheringRecommendationList.tsx @@ -1,9 +1,16 @@ -"use client" +"use client"; import { GatheringRecommend } from "@/types/GatheringDto"; import GatheringItem from "../../common/GatheringItem"; +import useAuthStore from "@/store/authStore"; + +const GatheringRecommendationList = ({ + data, +}: { + data: GatheringRecommend[]; +}) => { + const authStore = useAuthStore(); -const GatheringRecommendationList = ({data}: {data: GatheringRecommend[]}) => { return (

추천 모임 정보

@@ -13,8 +20,11 @@ const GatheringRecommendationList = ({data}: {data: GatheringRecommend[]}) => { key={i.gatheringId} data={{ ...i, - openChattingUrl: "" + openChattingUrl: "", }} + isAccessGathering={ + !!authStore.sex && !!authStore.age && authStore.id > 0 + } /> ))}