Skip to content

Commit dccc69e

Browse files
authored
fix(companion): add missing useEffect import and fix type errors (calcom#26960)
* fix(companion): add missing useEffect import to AvailabilityDetailScreen * fix(companion): fix type errors in edit-availability-hours routes
1 parent 9eb5692 commit dccc69e

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

companion/app/edit-availability-hours.ios.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default function EditAvailabilityHoursIOS() {
8585
</View>
8686
) : (
8787
<EditAvailabilityHoursScreenComponent
88-
schedule={schedule}
88+
schedule={schedule ?? null}
8989
onDayPress={handleDayPress}
9090
transparentBackground={useGlassEffect}
9191
/>

companion/app/edit-availability-hours.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ export default function EditAvailabilityHours() {
7676
),
7777
}}
7878
/>
79-
<EditAvailabilityHoursScreenComponent schedule={schedule} onDayPress={handleDayPress} />
79+
<EditAvailabilityHoursScreenComponent
80+
schedule={schedule ?? null}
81+
onDayPress={handleDayPress}
82+
/>
8083
</View>
8184
);
8285
}

companion/components/screens/AvailabilityDetailScreen.ios.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import { Ionicons } from "@expo/vector-icons";
1010
import { useRouter } from "expo-router";
11-
import { forwardRef, useCallback, useImperativeHandle, useMemo } from "react";
11+
import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo } from "react";
1212
import { ActivityIndicator, Alert, RefreshControl, ScrollView, Text, View } from "react-native";
1313
import { useSafeAreaInsets } from "react-native-safe-area-context";
1414
import { AppPressable } from "@/components/AppPressable";

companion/components/screens/AvailabilityDetailScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import { Ionicons } from "@expo/vector-icons";
1010
import { useRouter } from "expo-router";
11-
import { forwardRef, useCallback, useImperativeHandle, useMemo } from "react";
11+
import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo } from "react";
1212
import { ActivityIndicator, Alert, RefreshControl, ScrollView, Text, View } from "react-native";
1313
import { useSafeAreaInsets } from "react-native-safe-area-context";
1414
import { AppPressable } from "@/components/AppPressable";

0 commit comments

Comments
 (0)