diff --git a/x-pack/plugins/security/public/components/form_label.tsx b/x-pack/plugins/security/public/components/form_label.tsx index 724dfa9902b02..e1e646a4412ed 100644 --- a/x-pack/plugins/security/public/components/form_label.tsx +++ b/x-pack/plugins/security/public/components/form_label.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { EuiFlexGroup, EuiFlexItem, EuiIcon } from '@elastic/eui'; +import { EuiIcon } from '@elastic/eui'; import { useFormikContext } from 'formik'; import type { FunctionComponent } from 'react'; import React, { useEffect } from 'react'; @@ -46,13 +46,8 @@ export const FormLabel: FunctionComponent = (props) => { useEffect(() => report(isEqual), [isEqual]); // eslint-disable-line react-hooks/exhaustive-deps return ( - - {props.children} - {!isEqual ? ( - - - - ) : undefined} - + <> + {props.children} {!isEqual ? : undefined} + ); };