refactor: router.replace to router.push and fix typos
This commit is contained in:
committed by
GitHub
parent
eb7e052d75
commit
19f0e71609
@@ -27,7 +27,7 @@ const SignIn = () => {
|
||||
|
||||
if (signInAttempt.status === "complete") {
|
||||
await setActive({ session: signInAttempt.createdSessionId });
|
||||
router.replace("/");
|
||||
router.push("/");
|
||||
} else {
|
||||
Alert.alert("Error", "Invalid email or password.");
|
||||
setForm((prevForm) => ({
|
||||
|
||||
@@ -235,7 +235,7 @@ const SignUp = () => {
|
||||
|
||||
<CustomButton
|
||||
title="Browse Home"
|
||||
onPress={() => router.replace("/(root)/(tabs)/home")}
|
||||
onPress={() => router.push("/(root)/(tabs)/home")}
|
||||
className="mt-5"
|
||||
/>
|
||||
</View>
|
||||
|
||||
@@ -15,7 +15,7 @@ const Welcome = () => {
|
||||
return (
|
||||
<SafeAreaView className="flex h-full items-center justify-between bg-white">
|
||||
<TouchableOpacity
|
||||
onPress={() => router.replace("/(auth)/sign-up")}
|
||||
onPress={() => router.push("/(auth)/sign-up")}
|
||||
className="w-full flex justify-end items-end p-5"
|
||||
>
|
||||
<Text className="text-black text-base font-JakartaBold">Skip</Text>
|
||||
@@ -54,7 +54,7 @@ const Welcome = () => {
|
||||
<CustomButton
|
||||
onPress={() =>
|
||||
isLastSlide
|
||||
? router.replace("/(auth)/sign-up")
|
||||
? router.push("/(auth)/sign-up")
|
||||
: swiperRef.current?.scrollBy(1)
|
||||
}
|
||||
title={isLastSlide ? "Get Started" : "Next"}
|
||||
|
||||
Reference in New Issue
Block a user