From 98041dd1f04a2aa97a1b1b460e37b9337eea80bc Mon Sep 17 00:00:00 2001 From: alwn8918 Date: Sat, 25 Oct 2025 08:04:05 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20[FIX]=20=EB=B0=A9=EB=AA=85?= =?UTF-8?q?=EB=A1=9D=20=EA=B2=80=EC=83=89=20=EC=98=A4=EB=A5=98=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/GuestBookPage.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/GuestBookPage.tsx b/src/pages/GuestBookPage.tsx index 59da844..4e949d5 100644 --- a/src/pages/GuestBookPage.tsx +++ b/src/pages/GuestBookPage.tsx @@ -24,7 +24,7 @@ const GuestBookPage = () => { const [showModal, setShowModal] = useState(false) const [modalContent, setModalContent] = useState('') - const { items, totalPages, reload } = useGuestbook({ + const { items, totalPages } = useGuestbook({ page: currentPage, size: PAGE_SIZE, keyword, @@ -33,14 +33,12 @@ const GuestBookPage = () => { const handleSubmitted = (fromName: string) => { setKeyword('') setCurrentPage(1) - reload() setModalContent(`${fromName} 학생에게\n소중한 마음이 전달됐습니다.`) setShowModal(true) } const triggerSearch = () => { setCurrentPage(1) - reload() } const closeModal = useCallback(() => setSelected(null), []) @@ -61,6 +59,10 @@ const GuestBookPage = () => { } }, [selected, closeModal]) + useEffect(() => { + setCurrentPage(1) + }, [keyword]) + return (
From 4510e60ae335ac4dcd673587abd3a75c72df9788 Mon Sep 17 00:00:00 2001 From: alwn8918 Date: Sat, 25 Oct 2025 08:09:19 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=92=84=20[DESIGN]=20=EB=B0=A9?= =?UTF-8?q?=EB=AA=85=EB=A1=9D=20=ED=8F=B0=ED=8A=B8=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/guestbook/GuestBookWrite.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/guestbook/GuestBookWrite.tsx b/src/components/guestbook/GuestBookWrite.tsx index 84c62ed..a7d044a 100644 --- a/src/components/guestbook/GuestBookWrite.tsx +++ b/src/components/guestbook/GuestBookWrite.tsx @@ -49,7 +49,7 @@ const GuestBookWrite = ({ onSubmitted }: Props) => {
{/* To */}
-

To.

+

To.

{ {/* From */}
-

From.

+

+ From. +

{