Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
criamico committed May 19, 2022
1 parent 7f36bec commit 40c56d0
Showing 1 changed file with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
EuiIcon,
EuiFlexGroup,
EuiFlexItem,
EuiCallOut
EuiCallOut,
} from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n-react';

Expand Down Expand Up @@ -287,25 +287,23 @@ export const AgentUpgradeAgentModal: React.FunctionComponent<Props> = ({
/>
</EuiFormRow>
) : null}
{ errors ?
{errors ? (
<>
<EuiCallOut
color="danger"
title={
i18n.translate('xpack.fleet.upgradeAgents.warningCallout', {
defaultMessage:
'Error upgrading the selected {count, plural, one {agent} other {{count} agents}}',
values: { count: isSingleAgent },
})
}
title={i18n.translate('xpack.fleet.upgradeAgents.warningCallout', {
defaultMessage:
'Error upgrading the selected {count, plural, one {agent} other {{count} agents}}',
values: { count: isSingleAgent },
})}
>
<FormattedMessage
id="xpack.fleet.deleteAgentPolicy.confirmModal.affectedAgentsMessage"
defaultMessage={errors}
/>
</EuiCallOut>
</> : null
}
</>
) : null}
</EuiConfirmModal>
);
};

0 comments on commit 40c56d0

Please sign in to comment.