-
-
-
{colle.student.fullName}
+
+
+
+
+ {formatDate(colle.date)} à {formatTime(colle.date)}
+
-
-
-
-
{colle.examiner.name}
+
+
+ {colle.room?.name}
+
+
+
+ {colle.examiner?.name}
-
- {colle.room && (
-
-
- {colle.room.name}
-
- )}
-
-
-
-
-
-
- {colle.subject.name + " " + subjectEmoji}
-
- {isFavorite && (
-
-
- Favori
+
+
+
+ {colle.subject.name + " " + subjectEmoji}
- )}
-
- {/* TODO: Attachments */}
- {/* {colle.attachmentsCount > 0 && (
+ {isFavorite && (
+
+
+ Favori
+
+ )}
+
+ {/* TODO: Attachments */}
+ {/* {colle.attachmentsCount > 0 && (
)} */}
+
-
+
);
diff --git a/app/lib/utils.ts b/app/lib/utils.ts
index 3db2c85..15fe984 100644
--- a/app/lib/utils.ts
+++ b/app/lib/utils.ts
@@ -63,7 +63,7 @@ export const formatTime = (date: string) => {
return dt.toLocaleString({
hour: "2-digit",
minute: "2-digit",
- });
+ })?.replace(":", "h") || "N/A";
};
export const formatGrade = (grade?: number) => {