Fix warning due to dynamic creation of a styled component
This commit is contained in:
parent
a914608b69
commit
7124a8fbd9
|
@ -26,6 +26,10 @@ import { TimelineNonEcsData } from '../../../../graphql/types';
|
|||
import { UpdateAlertsStatus } from '../types';
|
||||
import { FILTER_CLOSED, FILTER_IN_PROGRESS, FILTER_OPEN } from '../alerts_filter_group';
|
||||
|
||||
const UtilityBarFlexGroup = styled(EuiFlexGroup)`
|
||||
min-width: 175px;
|
||||
`;
|
||||
|
||||
interface AlertsUtilityBarProps {
|
||||
canUserCRUD: boolean;
|
||||
hasIndexWrite: boolean;
|
||||
|
@ -69,10 +73,6 @@ const AlertsUtilityBarComponent: React.FC<AlertsUtilityBarProps> = ({
|
|||
defaultNumberFormat
|
||||
);
|
||||
|
||||
const UtilityBarFlexGroup = styled(EuiFlexGroup)`
|
||||
min-width: 175px;
|
||||
`;
|
||||
|
||||
const UtilityBarPopoverContent = (closePopover: () => void) => (
|
||||
<UtilityBarFlexGroup direction="column">
|
||||
{currentFilter !== FILTER_OPEN && (
|
||||
|
|
Loading…
Reference in a new issue