feat: [settings] 바로빌 연동 기능 보강 + 은행/카드 거래 조회 개선

- 바로빌 연동: 액션/타입 확장, UI 보강
- 은행/카드 거래 조회 개선
- 공지 팝업 모달 수정
This commit is contained in:
유병철
2026-03-17 15:52:50 +09:00
parent b5b462d6fa
commit b33f7d9b11
6 changed files with 394 additions and 13 deletions

View File

@@ -70,15 +70,20 @@ function dismissPopupForToday(popupId: string): void {
export function NoticePopupModal({ popup, open, onOpenChange }: NoticePopupModalProps) {
const [dontShowToday, setDontShowToday] = React.useState(false);
const handleClose = () => {
const handleClose = React.useCallback(() => {
if (dontShowToday) {
dismissPopupForToday(popup.id);
}
onOpenChange(false);
};
}, [dontShowToday, popup.id, onOpenChange]);
// 체크박스 상태를 팝업 전환 시 초기화
React.useEffect(() => {
setDontShowToday(false);
}, [popup.id]);
return (
<DialogPrimitive.Root open={open} onOpenChange={onOpenChange}>
<DialogPrimitive.Root open={open} onOpenChange={() => handleClose()}>
<DialogPrimitive.Portal>
{/* 오버레이 */}
<DialogPrimitive.Overlay