diff --git a/src/App.tsx b/src/App.tsx index 8db4aa5..d319b21 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -612,62 +612,68 @@ function App() { {/* Security Modal */} {showSecurityModal && ( -
-
+
setShowSecurityModal(false)} + > +
e.stopPropagation()} + >

Security Limitations

-
)} {/* Storage Modal */} {showStorageModal && ( -
-
+
setShowStorageModal(false)} + > +
e.stopPropagation()} + >

Storage Details

-
)} {/* Clipboard Modal */} {showClipboardModal && ( -
-
+
setShowClipboardModal(false)} + > +
e.stopPropagation()} + >

Clipboard Activity

-
)} {/* Lock Confirmation Modal */} {showLockConfirm && ( -
-
+
setShowLockConfirm(false)} + > +
e.stopPropagation()} + >

Lock Sensitive Data? diff --git a/src/components/SecurityWarnings.tsx b/src/components/SecurityWarnings.tsx index 3514876..a5be584 100644 --- a/src/components/SecurityWarnings.tsx +++ b/src/components/SecurityWarnings.tsx @@ -1,81 +1,66 @@ -import { useState } from 'react'; - -export const SecurityWarnings = () => { - const [isExpanded, setIsExpanded] = useState(false); +import React from 'react'; +export const SecurityWarnings: React.FC = () => { return ( -
-
+
+ - {/* Header */} -
setIsExpanded(!isExpanded)} - > -
- โš ๏ธ - Security Limitations -
- {isExpanded ? 'โ–ผ' : 'โ–ถ'} -
+ - {/* Expanded Content */} - {isExpanded && ( -
+ - + - + - + - - - - - - -
- Recommendation: Use this tool on a dedicated offline device. - Clear browser data after each use. Never use on shared/public computers. -
-
- )} +
+ Recommendation:{' '} + Use this tool on a dedicated offline device. Clear browser data after each use. Never use on shared/public computers.
); }; -const Warning = ({ icon, title, description }: { icon: string; title: string; description: string }) => ( -
- {icon} +const Warning = ({ + icon, + title, + description, +}: { + icon: string; + title: string; + description: string; +}) => ( +
+ {icon}
-
{title}
-
{description}
+
{title}
+
{description}
);