diff --git a/src/components/security/DataResetDialog.tsx b/src/components/security/DataResetDialog.tsx index b5d1d07..c93ece4 100644 --- a/src/components/security/DataResetDialog.tsx +++ b/src/components/security/DataResetDialog.tsx @@ -1,17 +1,7 @@ - import React from 'react'; import { CloudOff, Loader2 } from 'lucide-react'; import { Button } from '@/components/ui/button'; -import { - Dialog, - DialogContent, - DialogDescription, - DialogFooter, - DialogHeader, - DialogTitle, - DialogClose -} from '@/components/ui/dialog'; - +import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogClose } from '@/components/ui/dialog'; interface DataResetDialogProps { isOpen: boolean; onOpenChange: (open: boolean) => void; @@ -20,7 +10,6 @@ interface DataResetDialogProps { isLoggedIn: boolean; syncEnabled: boolean; } - const DataResetDialog: React.FC = ({ isOpen, onOpenChange, @@ -29,28 +18,19 @@ const DataResetDialog: React.FC = ({ isLoggedIn, syncEnabled }) => { - return ( - + return 정말 모든 데이터를 초기화하시겠습니까? - {isLoggedIn ? ( - <> + {isLoggedIn ? <> 이 작업은 되돌릴 수 없으며, 로컬 및 클라우드에 저장된 모든 예산, 지출 내역이 영구적으로 삭제됩니다.
클라우드 데이터도 함께 삭제됩니다.
- {syncEnabled && ( -
- 동기화 설정이 비활성화됩니다. -
- )} - - ) : ( - "이 작업은 되돌릴 수 없으며, 모든 예산, 지출 내역, 설정이 영구적으로 삭제됩니다." - )} + {syncEnabled} + : "이 작업은 되돌릴 수 없으며, 모든 예산, 지출 내역, 설정이 영구적으로 삭제됩니다."}
단, '환영합니다' 화면 표시 설정과 로그인 상태는 유지됩니다.
@@ -60,22 +40,14 @@ const DataResetDialog: React.FC = ({ -
-
- ); +
; }; - -export default DataResetDialog; +export default DataResetDialog; \ No newline at end of file