feat: [settings] 바로빌 연동 기능 보강 + 은행/카드 거래 조회 개선
- 바로빌 연동: 액션/타입 확장, UI 보강 - 은행/카드 거래 조회 개선 - 공지 팝업 모달 수정
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user