From d921078aaa776b6a9ad8a46060e61d2f9ccf13d6 Mon Sep 17 00:00:00 2001 From: minsik Date: Wed, 6 Nov 2024 15:46:23 +0900 Subject: [PATCH] =?UTF-8?q?useRecoilState=20->=20useRecoilValue=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/popupManager/PopupManager.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/common/popupManager/PopupManager.jsx b/src/components/common/popupManager/PopupManager.jsx index f24a8526..e84ee610 100644 --- a/src/components/common/popupManager/PopupManager.jsx +++ b/src/components/common/popupManager/PopupManager.jsx @@ -1,10 +1,10 @@ 'use client' -import { useRecoilState } from 'recoil' +import { useRecoilValue } from 'recoil' import { popupState } from '@/store/popupAtom' import { Fragment } from 'react' export default function PopupManager() { - const [popup, setPopup] = useRecoilState(popupState) + const popup = useRecoilValue(popupState) return [ ...popup?.config.map((child) => {child.component}),