From fd5514b8c2272af9452d31d7fbadccf3188095ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s?= Date: Mon, 11 Nov 2024 11:19:11 +0100 Subject: [PATCH] Clean form removing unnecessary FormField wrapping input atoms which (#578) include formfield. Also adding `autoGrow` prop to TextArea component --- .../Simple/NumberEvaluationEditor/index.tsx | 102 ++++++++---------- .../web-ui/src/ds/atoms/FormField/index.tsx | 4 +- .../web-ui/src/ds/atoms/TextArea/index.tsx | 8 +- 3 files changed, 56 insertions(+), 58 deletions(-) diff --git a/apps/web/src/app/(private)/evaluations/(evaluation)/[evaluationUuid]/editor/_components/Editor/Simple/NumberEvaluationEditor/index.tsx b/apps/web/src/app/(private)/evaluations/(evaluation)/[evaluationUuid]/editor/_components/Editor/Simple/NumberEvaluationEditor/index.tsx index 899b78e67..a2860e129 100644 --- a/apps/web/src/app/(private)/evaluations/(evaluation)/[evaluationUuid]/editor/_components/Editor/Simple/NumberEvaluationEditor/index.tsx +++ b/apps/web/src/app/(private)/evaluations/(evaluation)/[evaluationUuid]/editor/_components/Editor/Simple/NumberEvaluationEditor/index.tsx @@ -12,11 +12,10 @@ import { } from '@latitude-data/core/browser' import { Button, - FormField, FormFieldGroup, Input, - Label, Text, + TextArea, useToast, } from '@latitude-data/web-ui' import { @@ -142,66 +141,57 @@ export default function NumberEvaluationEditor({ id='simple-number-evaluation-editor' onSubmit={onSubmit} > - - + + + - - - - - - - - - - - - - - - - - -
- -