From ee08d5955f69661240144c39c96e88ad5757443a Mon Sep 17 00:00:00 2001 From: Tomas Roun Date: Thu, 18 Jul 2024 13:28:45 +0200 Subject: [PATCH] Fix boolean fields not showing --- src/pages/participant/fields.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pages/participant/fields.tsx b/src/pages/participant/fields.tsx index 35404ca..d634704 100644 --- a/src/pages/participant/fields.tsx +++ b/src/pages/participant/fields.tsx @@ -42,8 +42,9 @@ export function Field(field: FieldProps) { case 'number': case 'email': case 'phone': - case 'bool': return ; + case 'bool': + return ; case 'textarea': return ; case 'date': @@ -92,6 +93,15 @@ function TextField({title, description, data}: FieldProps) { ); } +function BooleanField({title, description, data}: FieldProps) { + return ( +
+ + {data ? 'yes' : 'no'} +
+ ); +} + function TextAreaField({title, description, data}: FieldProps) { return (