From dc85e2c9466e75214ad49b90238c9279ce883e5d Mon Sep 17 00:00:00 2001 From: "Roberto.silva" Date: Wed, 28 Jan 2026 14:22:37 -0600 Subject: [PATCH] =?UTF-8?q?Redirecci=C3=B3n=20de=20plan=20de=20estudios=20?= =?UTF-8?q?fix=20#22?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../asignaturas/detalle/MateriaDetailPage.tsx | 2 +- .../$planId/_detalle/{materias.tsx => asignaturas.tsx} | 2 +- src/routes/planes/$planId/_detalle/route.tsx | 2 +- src/routes/planes/$planId/asignaturas/index.tsx | 10 ---------- src/routes/planes/$planId/index.tsx | 2 +- 5 files changed, 4 insertions(+), 14 deletions(-) rename src/routes/planes/$planId/_detalle/{materias.tsx => asignaturas.tsx} (99%) delete mode 100644 src/routes/planes/$planId/asignaturas/index.tsx diff --git a/src/components/asignaturas/detalle/MateriaDetailPage.tsx b/src/components/asignaturas/detalle/MateriaDetailPage.tsx index 3d17196..834dd59 100644 --- a/src/components/asignaturas/detalle/MateriaDetailPage.tsx +++ b/src/components/asignaturas/detalle/MateriaDetailPage.tsx @@ -217,7 +217,7 @@ export default function MateriaDetailPage() {
diff --git a/src/routes/planes/$planId/_detalle/materias.tsx b/src/routes/planes/$planId/_detalle/asignaturas.tsx similarity index 99% rename from src/routes/planes/$planId/_detalle/materias.tsx rename to src/routes/planes/$planId/_detalle/asignaturas.tsx index fe38a50..49d09d9 100644 --- a/src/routes/planes/$planId/_detalle/materias.tsx +++ b/src/routes/planes/$planId/_detalle/asignaturas.tsx @@ -62,7 +62,7 @@ const mapAsignaturas = (asigApi: Array = []): Array => { })) } -export const Route = createFileRoute('/planes/$planId/_detalle/materias')({ +export const Route = createFileRoute('/planes/$planId/_detalle/asignaturas')({ component: MateriasPage, }) diff --git a/src/routes/planes/$planId/_detalle/route.tsx b/src/routes/planes/$planId/_detalle/route.tsx index f8f19c6..992f8b8 100644 --- a/src/routes/planes/$planId/_detalle/route.tsx +++ b/src/routes/planes/$planId/_detalle/route.tsx @@ -195,7 +195,7 @@ function RouteComponent() { Mapa Curricular - + Materias diff --git a/src/routes/planes/$planId/asignaturas/index.tsx b/src/routes/planes/$planId/asignaturas/index.tsx deleted file mode 100644 index 76f863e..0000000 --- a/src/routes/planes/$planId/asignaturas/index.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { createFileRoute, redirect } from '@tanstack/react-router' - -export const Route = createFileRoute('/planes/$planId/asignaturas/')({ - beforeLoad: ({ params }) => { - throw redirect({ - to: '/planes/$planId/materias', - params, - }) - }, -}) diff --git a/src/routes/planes/$planId/index.tsx b/src/routes/planes/$planId/index.tsx index 15ac830..63755ad 100644 --- a/src/routes/planes/$planId/index.tsx +++ b/src/routes/planes/$planId/index.tsx @@ -3,7 +3,7 @@ import { createFileRoute, redirect } from '@tanstack/react-router' export const Route = createFileRoute('/planes/$planId/')({ beforeLoad: ({ params }) => { throw redirect({ - to: '/planes/$planId/materias', + to: '/planes/$planId/datos', params, }) },