From 55512443f03f165e38806b3d2986aec1c0e0c4bd Mon Sep 17 00:00:00 2001 From: Kristof Csillag Date: Tue, 24 Sep 2024 04:14:40 +0200 Subject: [PATCH 1/2] Label: support restricting to an enum-like types --- frontend/src/components/InputFields/InputField.tsx | 2 +- frontend/src/components/InputFields/Label.tsx | 2 +- frontend/src/components/InputFields/useLabel.ts | 11 +++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/InputFields/InputField.tsx b/frontend/src/components/InputFields/InputField.tsx index 278a640..3305d47 100644 --- a/frontend/src/components/InputFields/InputField.tsx +++ b/frontend/src/components/InputFields/InputField.tsx @@ -24,7 +24,7 @@ export const InputField: FC<{ controls: InputFieldControls }> = ({ controls case 'oneOf': return )} /> case 'label': - return