diff --git a/src/routes/_authenticated/asignatura/$asignaturaId.tsx b/src/routes/_authenticated/asignatura/$asignaturaId.tsx index b21b313..0cfe680 100644 --- a/src/routes/_authenticated/asignatura/$asignaturaId.tsx +++ b/src/routes/_authenticated/asignatura/$asignaturaId.tsx @@ -247,7 +247,7 @@ function Page() { const t = (u.temas || []).find(([k]: any[]) => String(k).toLowerCase() === "titulo")?.[1] if (typeof t === "string" && t.trim()) return t return /^\s*\d+/.test(String(u.key)) - ? (u.title && u.title !== u.key ? u.title : `Unidad ${u.key ? u.key : 1}`) + ? (u.title && u.title !== u.key ? u.title : `Unidad ${u.key && Number(u.key) ? Number(u.key) + 1 : 1}`) : (u.title || String(u.key)) } const temasOf = (u: any): string[] => { @@ -285,7 +285,7 @@ function Page() {
{/^\s*\d+/.test(String(u.key)) - ? `Unidad ${u.key ? u.key : 1}${u.__title ? `: ${u.__title}` : ""}` + ? `Unidad ${u.key && Number(u.key) ? Number(u.key) + 1 : 1}${u.__title ? `: ${u.__title}` : ""}` : u.__title} {u.__temas.length} tema(s) diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 3fe4f7b..0a10bbc 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -1,6 +1,5 @@ import { createFileRoute, Link } from '@tanstack/react-router' import { Button } from "@/components/ui/button" -import { ArrowRight } from "lucide-react" import '../App.css' export const Route = createFileRoute('/')({ @@ -9,7 +8,7 @@ export const Route = createFileRoute('/')({ function App() { return ( -
+
{/* Navbar */}

Acad-IA

@@ -25,18 +24,10 @@ function App() {

Bienvenido a Acad-IA

- -
- - - -
{/* Footer */} -