wip: peer make work with qr code

This commit is contained in:
Cloud
2025-09-13 12:08:28 -05:00
parent 4f65f95ac9
commit 5bd7443681
5 changed files with 105 additions and 200 deletions
+9 -1
View File
@@ -329,7 +329,15 @@ function WireGuard() {
{/* Peer Configuration Modal */}
{showPeerConfig && selectedPeer && (
<div className="fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50">
<div
className="fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50"
onClick={(e) => {
// Close modal when clicking on backdrop
if (e.target === e.currentTarget) {
setShowPeerConfig(false);
}
}}
>
<div className="relative top-10 mx-auto p-5 border w-full max-w-4xl shadow-lg rounded-md bg-white">
<div className="mt-3">
<div className="flex items-center justify-between mb-4">