aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/contexts
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/app/contexts')
-rw-r--r--src/frontend/app/contexts/MapContext.tsx10
-rw-r--r--src/frontend/app/contexts/SettingsContext.tsx2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/frontend/app/contexts/MapContext.tsx b/src/frontend/app/contexts/MapContext.tsx
index af13bb7..db1392c 100644
--- a/src/frontend/app/contexts/MapContext.tsx
+++ b/src/frontend/app/contexts/MapContext.tsx
@@ -6,7 +6,7 @@ import {
useState,
type ReactNode,
} from "react";
-import { REGION_DATA } from "~/config/RegionConfig";
+import { APP_CONSTANTS } from "~/config/constants";
interface MapState {
center: LngLatLike;
@@ -36,8 +36,8 @@ export const MapProvider = ({ children }: { children: ReactNode }) => {
// We might want to ensure we have a fallback if the region changed while the app was closed?
// But for now, let's stick to the existing logic.
return {
- center: parsed.center || REGION_DATA.defaultCenter,
- zoom: parsed.zoom || REGION_DATA.defaultZoom,
+ center: parsed.center || APP_CONSTANTS.defaultCenter,
+ zoom: parsed.zoom || APP_CONSTANTS.defaultZoom,
userLocation: parsed.userLocation || null,
hasLocationPermission: parsed.hasLocationPermission || false,
};
@@ -46,8 +46,8 @@ export const MapProvider = ({ children }: { children: ReactNode }) => {
}
}
return {
- center: REGION_DATA.defaultCenter,
- zoom: REGION_DATA.defaultZoom,
+ center: APP_CONSTANTS.defaultCenter,
+ zoom: APP_CONSTANTS.defaultZoom,
userLocation: null,
hasLocationPermission: false,
};
diff --git a/src/frontend/app/contexts/SettingsContext.tsx b/src/frontend/app/contexts/SettingsContext.tsx
index 5f6ff46..d66ee52 100644
--- a/src/frontend/app/contexts/SettingsContext.tsx
+++ b/src/frontend/app/contexts/SettingsContext.tsx
@@ -5,7 +5,7 @@ import {
useState,
type ReactNode,
} from "react";
-import { APP_CONFIG } from "../config/AppConfig";
+import { APP_CONFIG } from "~/config/AppConfig";
export type Theme = "light" | "dark" | "system";
export type TableStyle = "regular" | "grouped" | "experimental_consolidated";