From 276e73412abef28c222c52a84334d49f5e414f3c Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Mon, 17 Nov 2025 23:39:08 +0100 Subject: Use consolidated data API in map sheet with shared card component (#100) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: arielcostas <94913521+arielcostas@users.noreply.github.com> Co-authored-by: Ariel Costas Guerrero --- src/frontend/app/AppContext.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/frontend/app/AppContext.tsx') diff --git a/src/frontend/app/AppContext.tsx b/src/frontend/app/AppContext.tsx index a369293..9c2521f 100644 --- a/src/frontend/app/AppContext.tsx +++ b/src/frontend/app/AppContext.tsx @@ -63,7 +63,7 @@ export const AppProvider = ({ children }: { children: ReactNode }) => { }; const [systemTheme, setSystemTheme] = useState<"light" | "dark">( - getPreferredScheme, + getPreferredScheme ); const [theme, setTheme] = useState(() => { @@ -141,7 +141,7 @@ export const AppProvider = ({ children }: { children: ReactNode }) => { const toggleTableStyle = () => { setTableStyle((prevTableStyle) => - prevTableStyle === "regular" ? "grouped" : "regular", + prevTableStyle === "regular" ? "grouped" : "regular" ); }; @@ -155,7 +155,7 @@ export const AppProvider = ({ children }: { children: ReactNode }) => { () => { const saved = localStorage.getItem("mapPositionMode"); return saved === "last" ? "last" : "gps"; - }, + } ); useEffect(() => { @@ -263,7 +263,7 @@ export const AppProvider = ({ children }: { children: ReactNode }) => { (error) => { console.error("Error getting location:", error); setLocationPermission(false); - }, + } ); } } -- cgit v1.3