Skip to content

Commit

Permalink
fix: screen header right buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Dec 30, 2024
1 parent d049750 commit eca2d15
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
12 changes: 7 additions & 5 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
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 eca2d15

Please sign in to comment.