From 5f15e7360c1374d195bb9dc7a2570c9a21bd47c2 Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Tue, 10 Jun 2025 11:34:53 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=EC=A7=80=EB=B6=95=EC=9E=AC=EC=A0=81?= =?UTF-8?q?=ED=95=A9=EC=84=B1=20description=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/popup/SuitableDetailPopupButton.tsx | 2 ++ src/components/suitable/SuitableButton.tsx | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/components/popup/SuitableDetailPopupButton.tsx b/src/components/popup/SuitableDetailPopupButton.tsx index 8340f94..06bb8d0 100644 --- a/src/components/popup/SuitableDetailPopupButton.tsx +++ b/src/components/popup/SuitableDetailPopupButton.tsx @@ -9,10 +9,12 @@ export default function SuitableDetailPopupButton() { const popupController = usePopupController() const { downloadSuitablePdf } = useSuitable() + /* 상세 팝업 닫기 */ const handleClosePopup = () => { popupController.setSuitableDetailPopup(false) } + /* 페이지 이동 */ const handleRedirectPage = (path: string) => { handleClosePopup() router.push(path) diff --git a/src/components/suitable/SuitableButton.tsx b/src/components/suitable/SuitableButton.tsx index b651a26..3ce8a3c 100644 --- a/src/components/suitable/SuitableButton.tsx +++ b/src/components/suitable/SuitableButton.tsx @@ -9,10 +9,12 @@ export default function SuitableButton() { const { getSuitableIds, clearSuitableStore, downloadSuitablePdf } = useSuitable() const { selectedItems, addAllSelectedItem } = useSuitableStore() + /* 데이터 전체 선택 */ const handleSelectAll = async () => { addAllSelectedItem(await getSuitableIds()) } + /* 상세 팝업 열기 */ const handleOpenPopup = () => { if (selectedItems.size === 0) { alert('屋根材を選択してください。') @@ -21,6 +23,7 @@ export default function SuitableButton() { popupController.setSuitableDetailPopup(true) } + /* pdf 다운로드 */ const handleRedirectPdfDownload = () => { if (selectedItems.size === 0) { alert('屋根材を選択してください。')