chore(ui): consolidates field label, error, and description components
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user