refactor: router.replace to router.push and fix typos

This commit is contained in:
Sanidhya Kumar Verma
2024-09-04 10:19:02 +00:00
committed by GitHub
parent eb7e052d75
commit 19f0e71609
9 changed files with 97 additions and 18 deletions
+2 -2
View File
@@ -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"}