From 517b9497f1c3cd83d4b7455e48dbda4cd14082bb Mon Sep 17 00:00:00 2001 From: "Roberto.silva" Date: Thu, 19 Feb 2026 08:36:52 -0600 Subject: [PATCH] =?UTF-8?q?Desaparecer=20bibliograf=C3=ADa=20fantasma=20fi?= =?UTF-8?q?x=20#109?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../asignaturas/detalle/BibliographyItem.tsx | 34 +------------------ 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/src/components/asignaturas/detalle/BibliographyItem.tsx b/src/components/asignaturas/detalle/BibliographyItem.tsx index ca58f05..0d14b5a 100644 --- a/src/components/asignaturas/detalle/BibliographyItem.tsx +++ b/src/components/asignaturas/detalle/BibliographyItem.tsx @@ -32,38 +32,6 @@ import { import { Textarea } from '@/components/ui/textarea' import { useSubjectBibliografia } from '@/data/hooks/useSubjects' import { cn } from '@/lib/utils' -// import { toast } from 'sonner'; -// import { mockLibraryResources } from '@/data/mockAsignaturaData'; - -export const mockLibraryResources = [ - { - id: 'lib-1', - titulo: 'Deep Learning', - autor: 'Goodfellow, I., Bengio, Y., & Courville, A.', - editorial: 'MIT Press', - anio: 2016, - isbn: '9780262035613', - disponible: true, - }, - { - id: 'lib-2', - titulo: 'Artificial Intelligence: A Modern Approach', - autor: 'Russell, S., & Norvig, P.', - editorial: 'Pearson', - anio: 2020, - isbn: '9780134610993', - disponible: true, - }, - { - id: 'lib-3', - titulo: 'Hands-On Machine Learning', - autor: 'Aurélien Géron', - editorial: "O'Reilly Media", - anio: 2019, - isbn: '9781492032649', - disponible: false, - }, -] // --- Interfaces --- export interface BibliografiaEntry { @@ -105,7 +73,7 @@ export function BibliographyItem({ useEffect(() => { if (bibliografia2 && Array.isArray(bibliografia2)) { setEntries(bibliografia2) - } else if (bibliografia) { + } else { // Fallback a la prop inicial si la API no devuelve nada setEntries(bibliografia) }