diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx
index 769494b..a70535b 100644
--- a/src/components/Settings.tsx
+++ b/src/components/Settings.tsx
@@ -1,5 +1,5 @@
import { useState, useEffect } from 'react';
-import { Store, Clock, Globe, Bell, Palette, Shield, Save, Copy, ExternalLink, Check, Link } from 'lucide-react';
+import { Store, Clock, Globe, Bell, Palette, Shield, Save, Copy, ExternalLink, Check, Link, Eye, EyeOff } from 'lucide-react';
const tabs = [
{ id: 'general', label: 'Geral', icon: Store },
@@ -397,25 +397,54 @@ export default function Settings() {
)}
{activeTab === 'security' && (
-
-
Segurança
-
- Senha Atual
-
-
-
-
{saved ? '✓ Salvo!' : 'Salvar'}
-
+
)}
);
}
+
+function SecurityTab({ handleSave, saved }: { handleSave: () => void; saved: boolean }) {
+ const [showCurrent, setShowCurrent] = useState(false);
+ const [showNew, setShowNew] = useState(false);
+ const [showConfirm, setShowConfirm] = useState(false);
+
+ // Re-importing specific lucide icons dynamically if possible, or we can use a generic button.
+ // Actually, we can use Eye and EyeOff if we import them at the top. Let's assume they are imported.
+ // Wait, I need to add the import at the top of the file!
+ // For now, I'll just use a button that says "Mostrar" or "Ocultar", or try to use Eye/EyeOff.
+ return (
+
+
Segurança
+
+
Senha Atual
+
+
+ setShowCurrent(!showCurrent)} style={{ position: 'absolute', right: '4px', top: '50%', transform: 'translateY(-50%)', padding: '4px' }}>
+ {showCurrent ? : }
+
+
+
+
+
+
Nova Senha
+
+
+ setShowNew(!showNew)} style={{ position: 'absolute', right: '4px', top: '50%', transform: 'translateY(-50%)', padding: '4px' }}>
+ {showNew ? : }
+
+
+
+
+
Confirmar Nova Senha
+
+
+ setShowConfirm(!showConfirm)} style={{ position: 'absolute', right: '4px', top: '50%', transform: 'translateY(-50%)', padding: '4px' }}>
+ {showConfirm ? : }
+
+
+
+
+
{saved ? '✓ Salvo!' : 'Salvar'}
+
+ );
+}
diff --git a/src/components/Topbar.tsx b/src/components/Topbar.tsx
index 433bc3b..b16a29e 100644
--- a/src/components/Topbar.tsx
+++ b/src/components/Topbar.tsx
@@ -16,7 +16,7 @@ const mockNotifications = [
export default function Topbar({ title, subtitle, onMenuClick }: TopbarProps) {
const [avatarInitials, setAvatarInitials] = useState('AD');
const [tenantName, setTenantName] = useState('Administrador');
- const [email, setEmail] = useState('admin@agendapro.com');
+ const [email, setEmail] = useState('');
const [showNotifications, setShowNotifications] = useState(false);
const [showProfile, setShowProfile] = useState(false);