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

Commit

parent 2af10009
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -19,6 +19,8 @@ export const visit_template = (places: string[]) => `
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 300px;
        width: 450px;
        gap: 10px;
@@ -29,7 +31,7 @@ export const visit_template = (places: string[]) => `
      }
      .container .image {
        flex-grow: 1;
        max-width: 100%;
        max-width: 50%;
        height: 90%;
        border-radius: 10px;
        overflow: hidden;
+4 −3
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ import {
  useSetUp,
} from "../src/common/contexts/set_up_context";
import { useEffect } from "react";
import { LANG_CONSTANTS } from "../src/lang/lang";

export default function Root() {
  return (
@@ -129,10 +130,9 @@ const MainLayout = () => {
        }}
      />
      <Stack.Screen
        name="routes/generate_manual_route"
        name="generate_route_manual"
        options={{
          title: t("generateRouteMapScreen.title"),
          statusBarColor: LIGHT_THEME.color.primary,
          title: t(LANG_CONSTANTS.generateManualRouteScreenTitle),
          headerStyle: {
            backgroundColor: LIGHT_THEME.color.primary,
          },
@@ -141,6 +141,7 @@ const MainLayout = () => {
          },
          headerTitleAlign: "center",
          headerTintColor: LIGHT_THEME.color.white,
          statusBarColor: LIGHT_THEME.color.primary,
        }}
      />
      <Stack.Screen
+10 −0
Original line number Diff line number Diff line
import { useLocalSearchParams } from "expo-router";
import { GenerateManualRoute } from "../src/route/screens/generate_manual_route_screen";

export default function GenerateManualRoutePage() {
  const { townId } = useLocalSearchParams<{ townId: string }>();
  if (!townId) {
    return null;
  }
  return <GenerateManualRoute townId={+townId} />;
}
+0 −5
Original line number Diff line number Diff line
import { GenerateManualRoute } from "../../src/route/screens/generate_manual_route_screen";

export const GenerateManualRoutePage = () => {
  return <GenerateManualRoute />;
};
+0 −8
Original line number Diff line number Diff line
@@ -20,14 +20,6 @@ export default function Layout() {
          },
          headerTitleAlign: "center",
          headerTintColor: LIGHT_THEME.color.white,
          headerRight: () => (
            <MaterialCommunityIcons
              name="map-marker-path"
              size={24}
              color={LIGHT_THEME.color.white}
              onPress={() => router.push("routes/generate_route")}
            />
          ),
        }}
      />
      <Stack.Screen
Loading