Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d3bfd5f

Browse files
authoredNov 13, 2024
Change navigator -> router
Note: these pages do not exist on this branch so until I get everything merged I am keeping these as a placeholder.
1 parent e93f4c7 commit d3bfd5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import React from "react";
22
import {View, Text, TouchableOpacity} from "react-native";
3-
import {useNavigation} from "expo-router";
3+
import {router} from "expo-router";
44

55
export function LoginSignupFooter() {
66
const navigation = useNavigation();
77
const handleLinkPress = (link: string) => {
88
if (link === "privacy") {
99
// Navigate to Privacy Policy screen
10-
navigation.navigate("PrivacyPolicy"); // Replace with your actual screen name
10+
router.replace("PrivacyPolicy"); // Replace with your actual screen name
1111
} else if (link === "terms") {
1212
// Navigate to Terms of Service screen
13-
navigation.navigate("TermsOfService"); // Replace with your actual screen name
13+
router.replace("TermsOfService"); // Replace with your actual screen name
1414
}
1515
}
1616
return (<View className="mt-6 flex flex-row justify-center">
@@ -22,4 +22,4 @@ export function LoginSignupFooter() {
2222
<Text className="text-text">Warunki użytkowania</Text>
2323
</TouchableOpacity>
2424
</View>);
25-
}
25+
}

0 commit comments

Comments
 (0)
Please sign in to comment.