Skip to content

Commit 6e5f4a8

Browse files
committed
fix lint
1 parent 820823d commit 6e5f4a8

1 file changed

Lines changed: 27 additions & 30 deletions

File tree

companion/components/booking-list-screen/BookingListScreen.tsx

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -721,37 +721,34 @@ export const BookingListScreen: React.FC<BookingListScreenProps> = ({
721721
)}
722722

723723
{/* Bookings list */}
724-
{showList && (
725-
<>
726-
{isManualRefreshing ? (
727-
<BookingListSkeleton count={4} iosStyle={iosStyle} />
728-
) : iosStyle ? (
729-
<FlatList
730-
data={listItems}
731-
keyExtractor={(item) => item.key}
732-
renderItem={renderListItem}
733-
contentContainerStyle={{ paddingBottom: 90 }}
734-
refreshControl={<RefreshControl refreshing={false} onRefresh={manualRefresh} />}
735-
showsVerticalScrollIndicator={false}
736-
contentInsetAdjustmentBehavior="automatic"
737-
style={{ backgroundColor: isDark ? "#000000" : "white" }}
738-
/>
739-
) : (
740-
<View className="flex-1 px-2 pt-4 md:px-4">
741-
<View className="flex-1 overflow-hidden rounded-lg border border-[#E5E5EA] bg-white dark:border-[#4D4D4D] dark:bg-black">
742-
<FlatList
743-
data={listItems}
744-
keyExtractor={(item) => item.key}
745-
renderItem={renderListItem}
746-
contentContainerStyle={{ paddingBottom: 90 }}
747-
refreshControl={<RefreshControl refreshing={false} onRefresh={manualRefresh} />}
748-
showsVerticalScrollIndicator={false}
749-
/>
750-
</View>
724+
{showList &&
725+
(isManualRefreshing ? (
726+
<BookingListSkeleton count={4} iosStyle={iosStyle} />
727+
) : iosStyle ? (
728+
<FlatList
729+
data={listItems}
730+
keyExtractor={(item) => item.key}
731+
renderItem={renderListItem}
732+
contentContainerStyle={{ paddingBottom: 90 }}
733+
refreshControl={<RefreshControl refreshing={false} onRefresh={manualRefresh} />}
734+
showsVerticalScrollIndicator={false}
735+
contentInsetAdjustmentBehavior="automatic"
736+
style={{ backgroundColor: isDark ? "#000000" : "white" }}
737+
/>
738+
) : (
739+
<View className="flex-1 px-2 pt-4 md:px-4">
740+
<View className="flex-1 overflow-hidden rounded-lg border border-[#E5E5EA] bg-white dark:border-[#4D4D4D] dark:bg-black">
741+
<FlatList
742+
data={listItems}
743+
keyExtractor={(item) => item.key}
744+
renderItem={renderListItem}
745+
contentContainerStyle={{ paddingBottom: 90 }}
746+
refreshControl={<RefreshControl refreshing={false} onRefresh={manualRefresh} />}
747+
showsVerticalScrollIndicator={false}
748+
/>
751749
</View>
752-
)}
753-
</>
754-
)}
750+
</View>
751+
))}
755752

756753
{/* Modals */}
757754
<BookingModals

0 commit comments

Comments
 (0)