Skip to content

Commit

Permalink
fixed shrink field to use new described field component
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Dec 9, 2020
1 parent 0e2c525 commit 1f28720
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { UseField, NumericField } from '../../../../../../shared_imports';
import { useEditPolicyContext } from '../../../edit_policy_context';
import { i18nTexts } from '../../../i18n_texts';

import { LearnMoreLink, DescribedFormField } from '../../';
import { LearnMoreLink, DescribedFormRow } from '../../';

interface Props {
phase: 'hot' | 'warm';
Expand All @@ -22,7 +22,7 @@ export const ShrinkField: FunctionComponent<Props> = ({ phase }) => {
const path = `phases.${phase}.actions.shrink.number_of_shards`;
const { policy } = useEditPolicyContext();
return (
<DescribedFormField
<DescribedFormRow
title={
<h3>
<FormattedMessage
Expand Down Expand Up @@ -68,6 +68,6 @@ export const ShrinkField: FunctionComponent<Props> = ({ phase }) => {
</EuiFlexGroup>
<EuiSpacer />
</div>
</DescribedFormField>
</DescribedFormRow>
);
};

0 comments on commit 1f28720

Please sign in to comment.