mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 23:31:12 -05:00
Fix: Ensure LocationAutoDetectProvider renders children
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import { useEffect } from 'react';
|
||||
import { ReactNode } from 'react';
|
||||
import { useLocationAutoDetect } from '@/hooks/useLocationAutoDetect';
|
||||
|
||||
export function LocationAutoDetectProvider() {
|
||||
useLocationAutoDetect();
|
||||
return null; // This component doesn't render anything, just runs the hook
|
||||
interface LocationAutoDetectProviderProps {
|
||||
children?: ReactNode;
|
||||
}
|
||||
|
||||
export function LocationAutoDetectProvider({ children }: LocationAutoDetectProviderProps) {
|
||||
useLocationAutoDetect();
|
||||
return <>{children}</>;
|
||||
}
|
||||
Reference in New Issue
Block a user