refactor: improve error states in spreadsheet flow

This commit is contained in:
Carlos Valente
2024-06-08 21:40:16 +02:00
committed by Carlos Valente
parent 9a9a0eb7cf
commit b99cf5f255
4 changed files with 37 additions and 12 deletions
@@ -67,7 +67,7 @@ export default function CustomFieldForm(props: CustomFieldsFormProps) {
return (
<form onSubmit={handleSubmit(setupSubmit)} className={style.fieldForm}>
<div className={style.column}>
<Panel.Description>Label</Panel.Description>
<Panel.Description>Label (only alphanumeric characters are allowed)</Panel.Description>
{errors.label && <Panel.Error>{errors.label.message}</Panel.Error>}
<Input
{...register('label', {