diff --git a/frontend/src/certs/NewRegister/RegisterPreview.tsx b/frontend/src/certs/NewRegister/RegisterPreview.tsx index 4d6a80e..ba3f3ef 100644 --- a/frontend/src/certs/NewRegister/RegisterPreview.tsx +++ b/frontend/src/certs/NewRegister/RegisterPreview.tsx @@ -6,6 +6,7 @@ import { RegisterBatchCreate } from "../../types/Register"; import { RegistrationPreview } from "."; import { loadCustomLabels } from "../../utils/allCustomLabels"; import { FileDashedIcon } from "../../icons/FileDashedIcon"; +import { LoadingIcon } from "../../icons/LoadingIcon"; function isoDateToLocalDate(date: string): string { @@ -65,12 +66,23 @@ export function RegisterPreview(props: {selections: Array, @@ -79,11 +91,11 @@ export function RegisterPreview(props: {selections: Array, function Register(props: { courseId: number, - date: string, - customLabel: string, - onDelete: (v: number) => void, - isPreview: boolean, - }) { + date: string, + customLabel: string, + onDelete: (v: number) => void, + isPreview: boolean, +}) { const courseName = () => { const courses = allCourses(); return courses.find((course) => course.course_id === props.courseId)?.course_name ?? `Curso invalido! (${props.courseId})`;