Skip to content

Commit

Permalink
fix types in ConditionalWrap
Browse files Browse the repository at this point in the history
  • Loading branch information
mgiota committed May 6, 2022
1 parent 77ea58c commit b499f66
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import React, { FunctionComponent } from 'react';
import React from 'react';
import { EuiButtonEmpty, EuiStat } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { euiStyled } from '@kbn/kibana-react-plugin/common';
Expand Down Expand Up @@ -36,8 +36,8 @@ const ConditionalWrap = ({
children,
}: {
condition: boolean;
wrap: FunctionComponent;
children: any;
wrap: (wrappedChildren: React.ReactNode) => JSX.Element;
children: JSX.Element;
}): JSX.Element => (condition ? wrap(children) : children);

export const renderRuleStats = (
Expand Down

0 comments on commit b499f66

Please sign in to comment.