chore(ui): consolidates field label, error, and description components

This commit is contained in:
Jacob Fletcher
2024-03-21 11:23:51 -04:00
parent 85ffc5d8bf
commit 64d6163f13
30 changed files with 124 additions and 87 deletions

View File

@@ -111,8 +111,8 @@ const JSONFieldComponent: React.FC<JSONFieldProps> = (props) => {
width,
}}
>
{CustomError !== undefined ? CustomError : <FieldError {...(errorProps || {})} />}
{CustomLabel !== undefined ? CustomLabel : <FieldLabel {...(labelProps || {})} />}
<FieldError CustomError={CustomError} {...(errorProps || {})} />
<FieldLabel CustomLabel={CustomLabel} {...(labelProps || {})} />
<div>
{BeforeInput}
<CodeEditor