From 35a63d7c5c52a28a7b5404424b19e0928a54f05f Mon Sep 17 00:00:00 2001 From: rsone001 Date: Tue, 14 Jul 2026 11:54:29 +0900 Subject: [PATCH] =?UTF-8?q?[st]=20-=20fix:=20=EC=A7=80=EB=82=9C=EB=85=84?= =?UTF-8?q?=EB=8F=84=20=EB=8D=B0=EC=9D=B4=ED=84=B0=20=EA=B0=80=EC=A0=B8?= =?UTF-8?q?=EC=98=A4=EA=B8=B0=20button=20confirm=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/st/src/components/button/LastYearDataButton.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/st/src/components/button/LastYearDataButton.tsx b/apps/st/src/components/button/LastYearDataButton.tsx index d9020c4ae..c0cc89f3b 100644 --- a/apps/st/src/components/button/LastYearDataButton.tsx +++ b/apps/st/src/components/button/LastYearDataButton.tsx @@ -1,12 +1,21 @@ import { Button } from "@common/components"; +import { useConfirm } from "@frontend-opensource/use-react-hooks"; interface LastYearDataButtonProps { getLastYearDataFunc: () => void; } const LastYearDataButton = ({ getLastYearDataFunc }: LastYearDataButtonProps) => { + const { confirm } = useConfirm(); + + const handleLastYearDataButton = async () => { + if (await confirm('작년 데이터를 불러오시겠습니까?')) { + getLastYearDataFunc(); + } + }; + return ( -