diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-08 01:37:10 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-08 01:37:10 +0100 |
| commit | 107295575e3a7c37911ae192baf426b0003975a4 (patch) | |
| tree | ceb528a428716d5313517a0fa72fcac3ea1360fb /src/frontend/app/AppContext.tsx | |
| parent | 3b3fd2f6880eaa9170b480d41d43311925483bea (diff) | |
Refactor code structure for improved readability and maintainability; removed redundant code blocks and optimized functions.
Diffstat (limited to 'src/frontend/app/AppContext.tsx')
| -rw-r--r-- | src/frontend/app/AppContext.tsx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/frontend/app/AppContext.tsx b/src/frontend/app/AppContext.tsx index 59f2724..12a54da 100644 --- a/src/frontend/app/AppContext.tsx +++ b/src/frontend/app/AppContext.tsx @@ -3,11 +3,11 @@ import { type ReactNode } from "react"; import { type RegionId } from "./config/RegionConfig"; import { MapProvider, useMap } from "./contexts/MapContext"; import { - SettingsProvider, - useSettings, - type MapPositionMode, - type TableStyle, - type Theme, + SettingsProvider, + useSettings, + type MapPositionMode, + type TableStyle, + type Theme, } from "./contexts/SettingsContext"; // Re-export types for compatibility @@ -21,6 +21,9 @@ export const useApp = () => { return { ...settings, ...map, + // Mock region support for now since we only have one region + region: "vigo" as RegionId, + setRegion: (region: RegionId) => { console.log("Set region", region); }, }; }; |
