mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
fix: resolve import errors and add missing api hooks
- Create constants.ts for RECORD_A_MEETING_URL - Add api-types.ts for backward compatible type exports - Update all imports from deleted api folder to new locations - Add missing React Query hooks for rooms and zulip operations - Create useApi compatibility layer for unmigrated components
This commit is contained in:
13
www/app/lib/useApi.ts
Normal file
13
www/app/lib/useApi.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
// Compatibility layer for direct API client usage
|
||||
// Prefer using React Query hooks from api-hooks.ts instead
|
||||
|
||||
import { client } from "./apiClient";
|
||||
|
||||
// Returns the configured client for direct API calls
|
||||
// This is a minimal compatibility layer for components that haven't been fully migrated
|
||||
export default function useApi() {
|
||||
return client;
|
||||
}
|
||||
|
||||
// Export the client directly for non-hook contexts
|
||||
export { client };
|
||||
Reference in New Issue
Block a user