From 037761628fd5ff96d673426ad67483c3ad014c99 Mon Sep 17 00:00:00 2001 From: HyunJinNo Date: Sun, 22 Sep 2024 00:44:25 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EB=B9=8C=EB=93=9C=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../read/GatheringRecommendationList.tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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 + } /> ))}