Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-06-30 20:46:00 +00:00
co-authored by renee-png
parent cbea663981
commit 516397c518
+1 -1
View File
@@ -185,7 +185,7 @@ function FormFillDialog({ formId, onClose, isAdmin }: { formId: string; onClose:
<div key={r.id} className="border rounded-md p-3 text-sm">
<div className="font-medium">
{(r.students as { first_name: string; last_name: string } | null)?.first_name ?? "—"} {(r.students as { last_name?: string } | null)?.last_name ?? ""}
<span className="text-muted-foreground font-normal ml-2">by {(r.profiles as { full_name?: string } | null)?.full_name} · {new Date(r.submitted_at).toLocaleDateString()}</span>
<span className="text-muted-foreground font-normal ml-2">by {r.submitter_name} · {new Date(r.submitted_at).toLocaleDateString()}</span>
</div>
<div className="mt-1 text-xs space-y-0.5">
{Object.entries(r.data_json as Record<string, string>).map(([k, v]) => <div key={k}><span className="text-muted-foreground">{k}:</span> {v}</div>)}