Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RocketChat
Rocket.Chat.Fuselage
Commits
e6df266c
Unverified
Commit
e6df266c
authored
Mar 23, 2020
by
gabriellsh
Committed by
GitHub
Mar 23, 2020
Browse files
fix: Spacing and markup in Ui Kit inputs (#176)
parent
e6732b53
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/fuselage-ui-kit/src/Input.js
View file @
e6df266c
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
>
<
Field
Group
>
<
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
>
<
/Field
Group
>
<
/Field.
Row
>
{
error
&&
<
Field
.
Error
>
{
error
}
<
/Field.
Error
>
}
{
hint
&&
<
Field
.
Hint
>
{
hint
}
<
/Field.Hint>
}
<
/Field
>
<
/Block
>
);
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment