From 97895492ea8d42d654f579904c51f9b3754a11c5 Mon Sep 17 00:00:00 2001 From: Cheshier Date: Wed, 27 Sep 2023 22:28:19 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=C2=A0Feat:=20=ED=8F=AC=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EA=B2=80=EC=83=89=20=EA=B2=B0=EA=B3=BC=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=ED=95=B4=EB=8B=B9=20=ED=95=AD=EB=AA=A9=20=ED=81=B4?= =?UTF-8?q?=EB=A6=AD=20=EC=8B=9C=20=ED=95=AD=EB=AA=A9=20=EC=83=81=EC=84=B8?= =?UTF-8?q?=20=EC=A0=95=EB=B3=B4=EB=A1=9C=20=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PostPreview/PostPreview.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/PostPreview/PostPreview.tsx b/src/components/PostPreview/PostPreview.tsx index 6c6aae3c..05f561e6 100644 --- a/src/components/PostPreview/PostPreview.tsx +++ b/src/components/PostPreview/PostPreview.tsx @@ -7,6 +7,8 @@ import { PreviewContainer } from './PostPreview.style'; import { Link } from '@components/Link'; +import { openSearch } from '@pages/layout/states/openSearch'; +import { useSetRecoilState } from 'recoil'; interface PostPreviewProps { post: EditedPost; @@ -25,9 +27,13 @@ const PostPreview = ({ const previewContent = `${content.substring(0, 100)}${ content.length > 100 ? '...' : '' }`; + const setResultShown = useSetRecoilState(openSearch); + const handlePreviewClick = () => { + setResultShown(false); + }; return ( - +