Colota - Android GPS Location tracker
Fix TypeScript errors in test files and ESLint warning in LocationDisclosureModal
Max Dietrichd259507f268f
diff --git a/apps/mobile/src/components/ui/LocationDisclosureModal.tsx b/apps/mobile/src/components/ui/LocationDisclosureModal.tsxindex 0d5193af..a8057551 100644--- a/apps/mobile/src/components/ui/LocationDisclosureModal.tsx+++ b/apps/mobile/src/components/ui/LocationDisclosureModal.tsx@@ -69,11 +69,11 @@ export function LocationDisclosureModal() {even when the app is closed or not in use.</Text>- <Text style={[styles.body, { color: colors.textSecondary, marginTop: 8 }]}>+ <Text style={[styles.body, styles.bodySpaced, { color: colors.textSecondary }]}>This data is sent only to the server you set up. No data is shared with third parties.</Text>- <Text style={[styles.body, { color: colors.textSecondary, marginTop: 8 }]}>+ <Text style={[styles.body, styles.bodySpaced, { color: colors.textSecondary }]}>The app also needs notification and battery permissions to keep tracking running reliably.</Text>@@ -137,6 +137,9 @@ const styles = StyleSheet.create({...fonts.regular,lineHeight: 20},+ bodySpaced: {+ marginTop: 8+ },buttons: {flexDirection: "row",gap: 12,diff --git a/apps/mobile/src/screens/__tests__/ApiSettingsScreen.test.tsx b/apps/mobile/src/screens/__tests__/ApiSettingsScreen.test.tsxindex 0d0a35a6..64803982 100644--- a/apps/mobile/src/screens/__tests__/ApiSettingsScreen.test.tsx+++ b/apps/mobile/src/screens/__tests__/ApiSettingsScreen.test.tsx@@ -73,7 +73,7 @@ describe("ApiSettingsScreen", () => {if (settingsOverride) {mockSettings = { ...DEFAULT_SETTINGS, ...settingsOverride }}- return render(<ApiSettingsScreen navigation={{} as any} route={{} as any} />)+ return render(<ApiSettingsScreen navigation={{} as any} />)}describe("template switching", () => {diff --git a/apps/mobile/src/screens/__tests__/AuthSettingsScreen.test.tsx b/apps/mobile/src/screens/__tests__/AuthSettingsScreen.test.tsxindex 7bbd1e22..116a8520 100644--- a/apps/mobile/src/screens/__tests__/AuthSettingsScreen.test.tsx+++ b/apps/mobile/src/screens/__tests__/AuthSettingsScreen.test.tsx@@ -11,7 +11,7 @@ const mockGetAuthConfig = jest.fn(() => Promise.resolve(mockAuthConfig))jest.mock("../../services/NativeLocationService", () => ({__esModule: true,default: {- getAuthConfig: (...args: any[]) => mockGetAuthConfig(...args),+ getAuthConfig: () => mockGetAuthConfig(),saveAuthConfig: (...args: any[]) => mockSaveAuthConfig(...args)}}))@@ -82,7 +82,7 @@ describe("AuthSettingsScreen", () => {})function renderScreen() {- return render(<AuthSettingsScreen navigation={{} as any} route={{} as any} />)+ return render(<AuthSettingsScreen navigation={{} as any} />)}describe("loading state", () => {