diff --git a/companion/app/(tabs)/(bookings)/booking-detail.tsx b/companion/app/(tabs)/(bookings)/booking-detail.tsx index 27908182ad..570a9791d7 100644 --- a/companion/app/(tabs)/(bookings)/booking-detail.tsx +++ b/companion/app/(tabs)/(bookings)/booking-detail.tsx @@ -1,5 +1,6 @@ import { Stack, useLocalSearchParams } from "expo-router"; import { useCallback, useMemo, useRef } from "react"; +import { Platform } from "react-native"; import { BookingDetailScreen } from "@/components/screens/BookingDetailScreen"; import { useAuth } from "@/contexts/AuthContext"; import { useBookingByUid } from "@/hooks/useBookings"; @@ -225,57 +226,59 @@ export default function BookingDetail() { }} /> - - Booking Details + {Platform.OS === "ios" && ( + + Booking Details - {/* Header right and left API only works on iOS ATM see: https://docs.expo.dev/versions/unversioned/sdk/router/#stackheaderright */} - - - Actions - + {/* Header right and left API only works on iOS ATM see: https://docs.expo.dev/versions/unversioned/sdk/router/#stackheaderright */} + + + Actions + - {/* Edit Event Section */} - - {bookingActionsSections.editEvent.map((action) => ( - - {action.label} - - ))} + {/* Edit Event Section */} + + {bookingActionsSections.editEvent.map((action) => ( + + {action.label} + + ))} + + + {/* After Event Section */} + + {bookingActionsSections.afterEvent.map((action) => ( + + {action.label} + + ))} + + + {/* Danger Zone Submenu */} + + {bookingActionsSections.standalone.map((action) => ( + + {action.label} + + ))} + - - {/* After Event Section */} - - {bookingActionsSections.afterEvent.map((action) => ( - - {action.label} - - ))} - - - {/* Danger Zone Submenu */} - - {bookingActionsSections.standalone.map((action) => ( - - {action.label} - - ))} - - - - + + + )} { - switch (type) { - case "address": - return "mappin.and.ellipse"; - case "link": - return "link"; - case "phone": - return "phone"; - default: - return "video"; - } -}; - export const AddLocationTrigger = ({ isHeader = false, locationOptions, @@ -116,30 +101,17 @@ export const AddLocationTrigger = ({ return trigger; } - return ( - - - - {locationOptions.flatMap((group) => - group.options - .filter((opt) => !isLocationAlreadyAdded(locations, opt.value)) - .map((option) => ( -