Delete hook barrel files and switch to direct hook imports
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user