Commit 468aedb7 authored by Lorenzo Trujillo Rojas's avatar Lorenzo Trujillo Rojas
Browse files

Se creó la ruta para el historial de viajes

parent 97ab63a2
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
import { useLocalSearchParams } from "expo-router";
import { View, Text } from "react-native";
import { TravelDetailsPage } from "../../../src/screens/travel_details/travel_details_page";

export default function Details() {
    const { id } = useLocalSearchParams<{ id: string }>();

    if (!id) {
        return (
            <View>
                <Text>Invalid ID</Text>
            </View>
        );
    }

    return (
        <TravelDetailsPage id={+id} />
    );
}
 No newline at end of file