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 ( -