aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/AppContext.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/app/AppContext.tsx')
-rw-r--r--src/frontend/app/AppContext.tsx8
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);
- },
+ }
);
}
}