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:
@@ -85,7 +85,7 @@ export default function EditAvailabilityHoursIOS() {
|
||||
</View>
|
||||
) : (
|
||||
<EditAvailabilityHoursScreenComponent
|
||||
schedule={schedule}
|
||||
schedule={schedule ?? null}
|
||||
onDayPress={handleDayPress}
|
||||
transparentBackground={useGlassEffect}
|
||||
/>
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user