mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
Fix ESLint fast-refresh warnings
Refactor to resolve react-refresh/only-export-components warnings: - Move buttonVariants export to separate file (Button.variants.ts) - Extract WebSocketContext to dedicated context file - Move useWebSocketContext hook to separate file - Update imports across affected files All component files now export only components, improving fast refresh reliability
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { useEffect, useRef } from 'react';
|
||||
import { useWebSocketContext, WSMessage } from '../providers/WebSocketProvider';
|
||||
import { useWebSocketContext } from '../providers/useWebSocketContext';
|
||||
import { WSMessage } from '../providers/WebSocketProvider';
|
||||
|
||||
// Re-export WSMessage type for convenience
|
||||
export type { WSMessage };
|
||||
|
||||
Reference in New Issue
Block a user