fix: resolve import paths and module loading errors

This commit is contained in:
2026-08-07 12:41:04 +02:00
parent 43b6467efb
commit 11f0d16515
15 changed files with 388 additions and 14 deletions
@@ -5,8 +5,8 @@ import type { NativeStackNavigationProp } from "@react-navigation/native-stack";
import type { RootStackParamList } from "@navigation/types";
import type { RouteProp } from "@react-navigation/native";
import { getWorkoutWithSets } from "@db/operations";
import { useSyncWorkout } from "../hooks/useSyncWorkout";
import { useWatchConnection } from "../hooks/useWatchConnection";
import { useSyncWorkout } from "../../watch-connectivity/hooks/useSyncWorkout";
import { useWatchConnection } from "../../watch-connectivity/hooks/useWatchConnection";
import { formatDistance } from "@utils/formatDistance";
import { STROKE_COLORS } from "@constants/strokes";
import type { WorkoutSet } from "@types/workout";
@@ -1,5 +1,5 @@
import { View, Text, Pressable } from "react-native";
import { useSettings } from "../../providers/WatchProvider";
import { useSettings } from "../../../providers/WatchProvider";
export function SettingsScreen() {
const { poolLength, setPoolLength } = useSettings();
@@ -1,5 +1,5 @@
import { useState } from "react";
import WatchConnectivity from "../../modules/watch-connectivity";
import WatchConnectivity from "../../../modules/watch-connectivity";
import type { WorkoutSet } from "@types/workout";
type SyncResult = { status: string } | { error: string };
@@ -1,5 +1,5 @@
import { useState, useEffect } from "react";
import WatchConnectivity from "../../modules/watch-connectivity";
import WatchConnectivity from "../../../modules/watch-connectivity";
type WatchConnectionStatus = "connected" | "disconnected" | "pending";
@@ -1,5 +1,5 @@
import { useState, useEffect } from "react";
import WatchConnectivity from "../../modules/watch-connectivity";
import WatchConnectivity from "../../../modules/watch-connectivity";
export function useWatchReachability() {
const [isReachable, setIsReachable] = useState(false);