Skip to content

Commit

Permalink
Merge pull request #197 from getAlby/task-contact-scroll
Browse files Browse the repository at this point in the history
fix: make contacts screen scrollable
  • Loading branch information
im-adithya authored Nov 19, 2024
2 parents 6e51fa7 + b0ce40d commit 5c40ece
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/send/AddressBook.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Link, router } from "expo-router";
import { Pressable, View } from "react-native";
import { Pressable, ScrollView, View } from "react-native";
import Screen from "~/components/Screen";
import { Button } from "~/components/ui/button";
import {
Expand All @@ -16,7 +16,7 @@ export function AddressBook() {
return (
<View className="flex-1 flex flex-col p-6 gap-3">
<Screen title="Address Book" />
<View className="flex-1 flex flex-col gap-4">
<ScrollView className="flex-1 flex flex-col">
{addressBookEntries.length > 0 ? (
addressBookEntries.map((addressBookEntry, index) => (
<Pressable
Expand All @@ -31,7 +31,7 @@ export function AddressBook() {
});
}}
>
<Card className="w-full">
<Card className="w-full mb-4">
<CardHeader className="w-full">
<CardTitle>
{addressBookEntry.name || addressBookEntry.lightningAddress}
Expand All @@ -46,7 +46,7 @@ export function AddressBook() {
) : (
<Text className="text-lg">No entries yet.</Text>
)}
</View>
</ScrollView>

<Link href="/settings/address-book/new" asChild>
<Button size="lg">
Expand Down

0 comments on commit 5c40ece

Please sign in to comment.