97d47fae813c5f0b76e83da999ed979019d5035b
TASK-BUG-07: Remove duplicate useJails() hook call on JailsPage Previously, useJails() was called twice on page load: 1. In JailsPage to extract jailNames for BanUnbanForm 2. In JailOverviewSection to manage the jail table This caused two parallel GET /api/jails requests on every page load. Changes: - Lift useJails() to JailsPage as the single source of truth - Accept jail state as props in JailOverviewSection - Thread all required state (jails, total, loading, error, and action handlers) down from JailsPage to JailOverviewSection - Remove useJails hook import from JailOverviewSection This consolidation reduces unnecessary HTTP requests and improves page load performance, especially with many jails. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Description
No description provided
Languages
Python
61.2%
TypeScript
24.9%
HTML
8.4%
Markdown
2.5%
Roff
0.9%
Other
2%