Commit 843e6303 authored by Lorenzo Trujillo Rojas's avatar Lorenzo Trujillo Rojas
Browse files

Se agregó el componente de punto de actividad a la ruta travel

parent f0a6f0f1
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
import { useLocalSearchParams } from "expo-router";
import { View, Text } from "react-native";
import { ActivityPointScreen } from "../../../../../../../src/screens/activity_point/activity_point";


export default function Travel() {
    const { ...rest } = useLocalSearchParams<{ stateId: string, townId: string, activityId: string, id: string }>();
    
    if (!rest.stateId || !rest.townId || !rest.activityId || !rest.id) {
        return null;
    }
    
    return (
        <View>
            <Text>Travel</Text>
        </View>
        <ActivityPointScreen stateId={parseInt(rest.stateId)} townId={parseInt(rest.townId)} activityId={parseInt(rest.activityId)} id={parseInt(rest.id)} />
    );
}
 No newline at end of file