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