Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
({ schema, uischema, data, path, dispatch }: ControlProps) => {
const controlElement = uischema as ControlElement;
const label = getLabelObject(controlElement);
const resolvedSchema = resolveSchema(schema, controlElement.scope.$ref + '/items');
const className = `control ${(convertToClassName(controlElement.scope.$ref))}`;
return (
<div>
<fieldset>
<legend>
<button> addNewItem(dispatch, path)}
>
+
</button>
<label>
{ label.show ? label.text : '' }
</label>
</legend></fieldset></div>