Delete hook barrel files and switch to direct hook imports

This commit is contained in:
2026-04-21 20:02:50 +02:00
parent 1ba82d56e7
commit b6d9c649ca
24 changed files with 35 additions and 48 deletions

View File

@@ -500,7 +500,9 @@ Update `JailConfig` (and the corresponding `JailConfigUpdate` patch type) to use
---
### TASK-025 — Consolidate barrel re-export files or replace with a single `index.ts`
### TASK-025 — Consolidate barrel re-export files or replace with a single `index.ts` (done)
**Summary:** Deleted the three barrel files and updated all frontend imports to use direct hook modules such as `../hooks/useJailList`, `../hooks/useJailConfigs`, and `../hooks/useBlocklistStatus`.
**Where found:** `frontend/src/hooks/useJails.ts`, `hooks/useConfig.ts`, and `hooks/useBlocklist.ts` are pure re-export files that do nothing except forward exports from other hook files.