mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 04:11:12 -05:00
Fix useEffect error in AuthProvider
This commit is contained in:
7
src/components/providers/LocationAutoDetectProvider.tsx
Normal file
7
src/components/providers/LocationAutoDetectProvider.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { useEffect } from 'react';
|
||||
import { useLocationAutoDetect } from '@/hooks/useLocationAutoDetect';
|
||||
|
||||
export function LocationAutoDetectProvider() {
|
||||
useLocationAutoDetect();
|
||||
return null; // This component doesn't render anything, just runs the hook
|
||||
}
|
||||
Reference in New Issue
Block a user