fix(companion): add missing useEffect import and fix type errors (#26960)

* fix(companion): add missing useEffect import to AvailabilityDetailScreen

* fix(companion): fix type errors in edit-availability-hours routes
This commit is contained in:
Dhairyashil Shinde
2026-01-17 21:35:27 +05:30
committed by GitHub
parent 9eb5692c3c
commit dccc69e6a4
4 changed files with 7 additions and 4 deletions
@@ -85,7 +85,7 @@ export default function EditAvailabilityHoursIOS() {
</View>
) : (
<EditAvailabilityHoursScreenComponent
schedule={schedule}
schedule={schedule ?? null}
onDayPress={handleDayPress}
transparentBackground={useGlassEffect}
/>
+4 -1
View File
@@ -76,7 +76,10 @@ export default function EditAvailabilityHours() {
),
}}
/>
<EditAvailabilityHoursScreenComponent schedule={schedule} onDayPress={handleDayPress} />
<EditAvailabilityHoursScreenComponent
schedule={schedule ?? null}
onDayPress={handleDayPress}
/>
</View>
);
}
@@ -8,7 +8,7 @@
import { Ionicons } from "@expo/vector-icons";
import { useRouter } from "expo-router";
import { forwardRef, useCallback, useImperativeHandle, useMemo } from "react";
import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo } from "react";
import { ActivityIndicator, Alert, RefreshControl, ScrollView, Text, View } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { AppPressable } from "@/components/AppPressable";
@@ -8,7 +8,7 @@
import { Ionicons } from "@expo/vector-icons";
import { useRouter } from "expo-router";
import { forwardRef, useCallback, useImperativeHandle, useMemo } from "react";
import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo } from "react";
import { ActivityIndicator, Alert, RefreshControl, ScrollView, Text, View } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { AppPressable } from "@/components/AppPressable";