diff --git a/companion/app/(tabs)/(availability)/index.tsx b/companion/app/(tabs)/(availability)/index.tsx index 8a4e401b84..014e94ce6b 100644 --- a/companion/app/(tabs)/(availability)/index.tsx +++ b/companion/app/(tabs)/(availability)/index.tsx @@ -1,17 +1,20 @@ import { isLiquidGlassAvailable } from "expo-glass-effect"; import { Stack, useRouter } from "expo-router"; import { useState } from "react"; -import { Alert, Platform } from "react-native"; +import { Alert, Platform, Pressable } from "react-native"; import { AvailabilityListScreen } from "@/components/screens/AvailabilityListScreen"; -import { useCreateSchedule } from "@/hooks"; +import { useCreateSchedule, useUserProfile } from "@/hooks"; import { CalComAPIService } from "@/services/calcom"; import { showErrorAlert } from "@/utils/alerts"; +import { getAvatarUrl } from "@/utils/getAvatarUrl"; +import { Image } from "expo-image"; export default function Availability() { const router = useRouter(); const [searchQuery, setSearchQuery] = useState(""); const [showCreateModal, setShowCreateModal] = useState(false); const { mutate: createScheduleMutation } = useCreateSchedule(); + const { data: userProfile } = useUserProfile(); const handleCreateNew = () => { // Use native iOS Alert.prompt for a native look @@ -68,7 +71,10 @@ export default function Availability() { console.error("Failed to create schedule", message); if (__DEV__) { const stack = error instanceof Error ? error.stack : undefined; - console.debug("[Availability] createSchedule failed", { message, stack }); + console.debug("[Availability] createSchedule failed", { + message, + stack, + }); } showErrorAlert("Error", "Failed to create schedule. Please try again."); }, @@ -88,8 +94,7 @@ export default function Availability() {