|
|
@@ -276,7 +276,15 @@ const ReservationLocationPage = () => {
|
|
|
<View className="pt-6 ">
|
|
|
{/* For now, clicking the X button goes back to login page. */}
|
|
|
{/* Once home page component is created, i will change it */}
|
|
|
- <Pressable onPress={() => router.push('/')}>
|
|
|
+ <Pressable
|
|
|
+ onPress={() => {
|
|
|
+ if (router.canGoBack()) {
|
|
|
+ router.back();
|
|
|
+ } else {
|
|
|
+ router.replace('/');
|
|
|
+ }
|
|
|
+ }}
|
|
|
+ >
|
|
|
<CrossLogoSvg />
|
|
|
</Pressable>
|
|
|
</View>
|