Skip to content

Commit

Permalink
fix: correct label display logic, closes #161
Browse files Browse the repository at this point in the history
  • Loading branch information
nshenderov committed Sep 25, 2024
1 parent d619833 commit a06a214
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions admin/src/components/Input/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const Input = ({
error = null,
required = false,
hint = '',
intlLabel
}) => {
const { formatMessage } = useIntl();
const { preset, maxLengthCharacters, ...options } = attribute.options;
Expand All @@ -22,10 +23,7 @@ const Input = ({
<Field.Root name={name} id={name} error={error} hint={hint}>
<Flex direction="column" alignItems="stretch" gap={1}>
<Field.Label action={labelAction} required={required}>
{formatMessage({
id: 'plugin.ckeditor.label',
defaultMessage: 'CKEditor',
})}
{intlLabel ? formatMessage(intlLabel) : name}
</Field.Label>
<Editor
disabled={disabled}
Expand Down

0 comments on commit a06a214

Please sign in to comment.