Skip to content

Colota - Android GPS Location tracker

chore: remove dead code, unused files, and reorganize project structure

Max Dietriche86ad135ce0c
diff --git a/App.tsx b/App.tsx
index a896f292..3ce8166e 100644
--- a/App.tsx
+++ b/App.tsx
@@ -9,7 +9,7 @@ import { SafeAreaProvider } from "react-native-safe-area-context"
import { StatusBar, Platform } from "react-native"
import { ThemeProvider, useTheme } from "./src/hooks/useTheme"
import { TrackingProvider } from "./src/contexts/TrackingProvider"
-import ThemedErrorBoundary from "./src/components/ThemedErrorBoundary"
+import ThemedErrorBoundary from "./src/components/ui/ThemedErrorBoundary"
import {
DashboardScreen,
SettingsScreen,
diff --git a/src/components/features/databases/DatabaseStatistics.tsx b/src/components/features/databases/DatabaseStatistics.tsx
index 2f541fa2..905ffa3e 100644
--- a/src/components/features/databases/DatabaseStatistics.tsx
+++ b/src/components/features/databases/DatabaseStatistics.tsx
@@ -6,7 +6,7 @@ import React from "react"
import { Text, StyleSheet, View } from "react-native"
import { SectionTitle, Card } from "../.."
import { useTheme } from "../../../hooks/useTheme"
-import { getQueueColor } from "../../../helpers/queueStatus"
+import { getQueueColor } from "../../../services/queueStatus"
type DatabaseStatisticsProps = {
stats: any
diff --git a/src/components/features/settings/StatsCard.tsx b/src/components/features/settings/StatsCard.tsx
index 35265b8e..99ec0b4d 100644
--- a/src/components/features/settings/StatsCard.tsx
+++ b/src/components/features/settings/StatsCard.tsx
@@ -5,7 +5,7 @@
import React from "react"
import { View, Text, StyleSheet, TouchableOpacity } from "react-native"
import { ThemeColors } from "../../../types/global"
-import { getQueueColor } from "../../../helpers/queueStatus"
+import { getQueueColor } from "../../../services/queueStatus"
interface StatsCardProps {
queueCount: number
diff --git a/src/components/ErrorBoundary.tsx b/src/components/ui/ErrorBoundary.tsx
similarity index 100%
rename from src/components/ErrorBoundary.tsx
rename to src/components/ui/ErrorBoundary.tsx
diff --git a/src/components/ThemedErrorBoundary.tsx b/src/components/ui/ThemedErrorBoundary.tsx
similarity index 100%
rename from src/components/ThemedErrorBoundary.tsx
rename to src/components/ui/ThemedErrorBoundary.tsx
diff --git a/src/helpers/queueStatus.ts b/src/services/queueStatus.ts
similarity index 100%
rename from src/helpers/queueStatus.ts
rename to src/services/queueStatus.ts