diff --git a/client/src/components/pages/NotificationsPage.tsx b/client/src/components/pages/NotificationsPage.tsx index bad7d2e..49ee566 100644 --- a/client/src/components/pages/NotificationsPage.tsx +++ b/client/src/components/pages/NotificationsPage.tsx @@ -143,9 +143,9 @@ export function NotificationsPage() { {n.type} {n.emailSent ? ( - + ) : ( - + )} {!n.read && ( diff --git a/client/src/components/pages/SettingsPage.tsx b/client/src/components/pages/SettingsPage.tsx index d2ed6a6..46908b6 100644 --- a/client/src/components/pages/SettingsPage.tsx +++ b/client/src/components/pages/SettingsPage.tsx @@ -1,5 +1,5 @@ import { useEffect, useState, useCallback } from "react" -import { UserPlus, Trash2, Shield, Code, Bell, BellOff, Pencil, Check, X } from "lucide-react" +import { UserPlus, Trash2, Shield, Code, Bell, BellOff, Check, X } from "lucide-react" interface MonitorUser { id: string @@ -33,7 +33,6 @@ export function SettingsPage() { const [users, setUsers] = useState([]) const [loading, setLoading] = useState(true) const [showForm, setShowForm] = useState(false) - const [editId, setEditId] = useState(null) const [form, setForm] = useState({ email: "", name: "", role: "developer" as MonitorUser["role"], notifyOnError: true }) const [error, setError] = useState("") @@ -62,20 +61,6 @@ export function SettingsPage() { } catch (e) { setError((e as Error).message) } } - const handleUpdate = async (id: string) => { - const user = users.find(u => u.id === id) - if (!user) return - try { - setError("") - await apiFetch(`/api/users/${id}`, { - method: "PUT", - body: JSON.stringify({ name: user.name, role: user.role, notifyOnError: user.notifyOnError }), - }) - setEditId(null) - load() - } catch (e) { setError((e as Error).message) } - } - const handleDelete = async (id: string, name: string) => { if (!confirm(`Remove ${name} from the user list?`)) return try {