fix: remove eslint-disable for uninstalled react-hooks plugin; remove unused clientMap (GRO-27)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Groom Book CTO
2026-03-17 21:32:40 +00:00
parent 7de6ff4a55
commit 16a19eafc1
+1 -3
View File
@@ -444,7 +444,7 @@ export function GroupBookingPage() {
useEffect(() => {
loadAll();
}, [clientFilter]); // eslint-disable-line react-hooks/exhaustive-deps
}, [clientFilter]); // re-fetch when client filter changes
async function cancelGroup(groupId: string) {
if (!confirm("Cancel all appointments in this group visit?")) return;
@@ -452,8 +452,6 @@ export function GroupBookingPage() {
if (res.ok) loadAll();
}
const clientMap = new Map(clients.map((c) => [c.id, c.name]));
if (loading && groups.length === 0) return <p style={{ padding: "1rem" }}>Loading</p>;
if (error) return <p style={{ padding: "1rem", color: "#dc2626" }}>Error: {error}</p>;