diff --git a/app/_layout.web.tsx b/app/_layout.web.tsx index 6162f6c..7f0c693 100644 --- a/app/_layout.web.tsx +++ b/app/_layout.web.tsx @@ -10,7 +10,7 @@ import themes from '@/assets/themes' import log from "@/util/log" // Prevent the splash screen from auto-hiding before asset loading is complete. -SplashScreen.preventAutoHideAsync(); +void SplashScreen.preventAutoHideAsync(); export default function RootLayout() { return ( @@ -34,7 +34,7 @@ function InnerRootLayout() { }); useEffect(() => { if (loaded) { - SplashScreen.hideAsync(); + void SplashScreen.hideAsync(); } }, [loaded]); diff --git a/components/BottomNav.tsx b/components/BottomNav.tsx index ee3e78a..825d791 100644 --- a/components/BottomNav.tsx +++ b/components/BottomNav.tsx @@ -1,4 +1,4 @@ -import {Appbar, Button, Portal, Text, useTheme} from "react-native-paper"; +import {Appbar, Button, Text, useTheme} from "react-native-paper"; import {View} from "react-native"; import styles from "@/assets/styles"; import React from "react"; diff --git a/components/Location.tsx b/components/Location.tsx index 9a6172c..f1570a1 100644 --- a/components/Location.tsx +++ b/components/Location.tsx @@ -1,4 +1,4 @@ -import { Dialog, Portal, useTheme } from "react-native-paper"; +import { Dialog, Portal } from "react-native-paper"; import React, {useEffect} from "react"; import Broken from "@/components/Broken"; @@ -6,8 +6,6 @@ interface LocationProps { visible: boolean; } const Location: React.FC = ({ visible }) => { - const theme = useTheme(); - useEffect(() => { if (visible) { diff --git a/components/TopNav.tsx b/components/TopNav.tsx index 73fb8dc..6ea72a5 100644 --- a/components/TopNav.tsx +++ b/components/TopNav.tsx @@ -4,6 +4,7 @@ import React, {useState} from "react"; import styles from "@/assets/styles"; import About from "@/components/About"; import Privacy from "@/components/Privacy"; +import Broken from "@/components/Broken"; const TopNav = ({ toggleProfile }: { toggleProfile: () => void; }) => { const theme = useTheme(); @@ -57,6 +58,15 @@ const TopNav = ({ toggleProfile }: { toggleProfile: () => void; }) => { + setBugVisible(false)} style={{ backgroundColor: theme.colors.primaryContainer }}> + Privacy Policy + + + + + ); diff --git a/package-lock.json b/package-lock.json index c75ffcb..733116b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@react-native-async-storage/async-storage": "~2.1.1", "@react-navigation/bottom-tabs": "^7.2.0", "@react-navigation/native": "^7.0.14", - "axios": "~1.7.9", + "axios": "~1.8.4", "expo": "~52.0.25", "expo-blur": "~14.0.2", "expo-constants": "~17.0.4", @@ -5197,9 +5197,9 @@ } }, "node_modules/axios": { - "version": "1.7.9", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz", - "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", + "version": "1.8.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.4.tgz", + "integrity": "sha512-eBSYY4Y68NNlHbHBMdeDmKNtDgXWhQsJcGqzO3iLUM0GraQFSS9cVgPX5I9b3lbdFKyYoAEGAZF1DwhTaljNAw==", "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", diff --git a/package.json b/package.json index eb2a3e4..709a9e6 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "react-use-websocket": "~4.13.0", "@react-native-async-storage/async-storage": "~2.1.1", "expo-image-picker": "~16.0.6", - "axios": "~1.7.9", + "axios": "~1.8.4", "uuid": "~11.0.5", "react-native-paper": "~5.13.1", "react-native-vector-icons": "~10.2.0",