Unverified Commit e6df266c authored by gabriellsh's avatar gabriellsh Committed by GitHub
Browse files

fix: Spacing and markup in Ui Kit inputs (#176)

parent e6732b53
import React from 'react';
import {
Field,
FieldGroup,
TextAreaInput,
TextInput,
} from '@rocket.chat/fuselage';
......@@ -16,14 +15,14 @@ export const Input = React.memo(({ label, element, parser, index, hint, context
const [{ error }] = useBlockContext(element, context);
return (
<Block>
<FieldGroup>
<Field>
{label && <Field.Label>{label}</Field.Label>}
<Field>
{label && <Field.Label>{label}</Field.Label>}
<Field.Row>
{parser.renderInputs(element, BLOCK_CONTEXT.FORM, parser, index)}
{error && <Field.Error>{error}</Field.Error>}
{hint && <Field.Hint>{hint}</Field.Hint>}
</Field>
</FieldGroup>
</Field.Row>
{error && <Field.Error>{error}</Field.Error>}
{hint && <Field.Hint>{hint}</Field.Hint>}
</Field>
</Block>
);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment