Commit bd226468 authored by Lorenzo Trujillo Rojas's avatar Lorenzo Trujillo Rojas
Browse files

Se creó la ruta para ver los detalles de una sola actividad realizada

parent 468aedb7
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ export default function Layout() {
          color: LIGTHT_THEME.color.white,
        },
        headerTitleAlign: "center",
        
      }}
    >
      <Tabs.Screen
+2 −3
Original line number Diff line number Diff line
import { View } from "react-native";
import { TravelHistoryPage } from "../../src/screens/travel_history/travel_history_page";

export default function TravelHistoryScreen() {
  return (
    <View >

    </View>
    <TravelHistoryPage/>
  );
}
 No newline at end of file
+19 −15
Original line number Diff line number Diff line
import { Stack } from "expo-router";
import { LIGTHT_THEME } from "../../../../../../src/constants/theme";

export default function ActivitySelectionScreen() {
  return (
    <Stack>
            <Stack.Screen name="[activityId]/index" options={
                {
                    headerShown: false
                }
            } />
            <Stack.Screen name="[activityId]/travel" options={
                {
                    headerShown: false
                }
            } />
      <Stack.Screen
        name="[activityId]/index"
        options={{
          headerShown: false,
        }}
      />
      <Stack.Screen
        name="[activityId]/travel"
        options={{
          headerShown: false,
          
        }}
      />
    </Stack>
  );
}
+26 −0
Original line number Diff line number Diff line
import { Stack } from "expo-router";
import { LIGTHT_THEME } from "../../src/constants/theme";
import { Button } from "react-native";
import { ShareButton } from "../../src/travel_history/components/share_button";

export default function Layout() {
  return (
    <Stack
      screenOptions={{
        headerStyle: {
          backgroundColor: LIGTHT_THEME.color.primary,
        },
        headerTitleStyle: {
          color: LIGTHT_THEME.color.white,
        },
        headerTitleAlign: "center",
        headerTintColor: LIGTHT_THEME.color.white,
      }}
    >
      <Stack.Screen name="details/[id]" options={{
        title: "Travel Details",
        headerRight: () => <ShareButton onPress={() => {}}/>
      }}/>
    </Stack>
  );
}