Skip to content

Commit

Permalink
Merge pull request #242 from getAlby/task-settings
Browse files Browse the repository at this point in the history
fix: settings button in header
  • Loading branch information
im-adithya authored Dec 30, 2024
2 parents ed71da0 + f068acb commit 8c5c9cd
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
26 changes: 15 additions & 11 deletions pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ export function Home() {
<Screen
title=""
right={() => (
<Link href="/settings" asChild>
<TouchableOpacity>
<SettingsIcon className="text-muted-foreground" />
</TouchableOpacity>
</Link>
<TouchableOpacity
onPressIn={() => {
router.push("/settings");
}}
>
<SettingsIcon className="text-muted-foreground" />
</TouchableOpacity>
)}
/>
<View className="h-full flex p-6">
Expand Down Expand Up @@ -145,12 +147,14 @@ export function Home() {
</View>
</ScrollView>
<View className="flex items-center justify-center">
<Link href="/transactions">
<ChevronUpIcon
className="text-muted-foreground"
width={32}
height={32}
/>
<Link href="/transactions" asChild>
<TouchableOpacity>
<ChevronUpIcon
className="text-muted-foreground"
width={32}
height={32}
/>
</TouchableOpacity>
</Link>
</View>
<View className="flex flex-row gap-6 mt-10">
Expand Down
2 changes: 1 addition & 1 deletion pages/Transactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function Transactions() {
animation="slide_from_bottom"
right={() => (
<Pressable
onPress={() => {
onPressIn={() => {
router.back();
}}
>
Expand Down
1 change: 1 addition & 0 deletions pages/send/PaymentSuccess.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { openURL } from "expo-linking";
import { router, useLocalSearchParams } from "expo-router";
import { LNURLPaymentSuccessAction } from "lib/lnurl";
import React from "react";
import { ScrollView, View } from "react-native";
import { Tick } from "~/animations/Tick";
import { Receiver } from "~/components/Receiver";
Expand Down
8 changes: 4 additions & 4 deletions pages/settings/wallets/SetupWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as Clipboard from "expo-clipboard";
import { router, useLocalSearchParams } from "expo-router";
import { useAppStore } from "lib/state/appStore";
import React from "react";
import { Pressable, TouchableOpacity, View } from "react-native";
import { TouchableOpacity, View } from "react-native";
import Toast from "react-native-toast-message";
import Alert from "~/components/Alert";
import DismissableKeyboardView from "~/components/DismissableKeyboardView";
Expand Down Expand Up @@ -153,8 +153,8 @@ export function SetupWallet() {
title="Setup Wallet Connection"
right={() =>
walletIdWithConnection !== -1 ? (
<Pressable
onPress={() => {
<TouchableOpacity
onPressIn={() => {
useAppStore
.getState()
.setSelectedWalletId(walletIdWithConnection);
Expand All @@ -165,7 +165,7 @@ export function SetupWallet() {
}}
>
<XIcon className="text-foreground" />
</Pressable>
</TouchableOpacity>
) : (
<Dialog>
<DialogTrigger asChild>
Expand Down

0 comments on commit 8c5c9cd

Please sign in to comment.