refactor: rename Materia to Asignatura across the codebase
- Updated type definitions and interfaces to replace 'Materia' with 'Asignatura'. - Refactored components and routes to reflect the new naming convention. - Adjusted related types and constants for consistency. - Removed the old Materia type definition and added Asignatura type definition. - Ensured all references in UI components and logic are updated accordingly. fix #50
This commit is contained in:
@@ -41,7 +41,7 @@ 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/mockMateriaData';
|
||||
// import { mockLibraryResources } from '@/data/mockAsignaturaData';
|
||||
|
||||
export const mockLibraryResources = [
|
||||
{
|
||||
@@ -99,7 +99,7 @@ export function BibliographyItem({
|
||||
}: BibliografiaTabProps) {
|
||||
console.log(id)
|
||||
|
||||
const { data: bibliografia2, isLoading: loadinmateria } =
|
||||
const { data: bibliografia2, isLoading: loadinasignatura } =
|
||||
useSubjectBibliografia(id)
|
||||
const [entries, setEntries] = useState<Array<BibliografiaEntry>>(bibliografia)
|
||||
const [isAddDialogOpen, setIsAddDialogOpen] = useState(false)
|
||||
|
||||
Reference in New Issue
Block a user