diff options
| author | Copilot <198982749+Copilot@users.noreply.github.com> | 2025-11-17 23:39:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-17 23:39:08 +0100 |
| commit | 276e73412abef28c222c52a84334d49f5e414f3c (patch) | |
| tree | 8b7ae07eafa53f9efc5884e4f0696e6077266f48 /src/frontend/app/AppContext.tsx | |
| parent | 36d982fb3b01fd8181b216b57fba2c42e9404d1f (diff) | |
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 <ariel@costas.dev>
Diffstat (limited to 'src/frontend/app/AppContext.tsx')
| -rw-r--r-- | src/frontend/app/AppContext.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
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<Theme>(() => { @@ -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); - }, + } ); } } |
