Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security Solution] Clearing up all jest errors and warnings #91740

Merged
merged 5 commits into from
Feb 19, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
euitext added to locked card
  • Loading branch information
stephmilovic committed Feb 18, 2021
commit d4c5a1aca77dfc9c26dfd4c771c97a3e55101da7
Original file line number Diff line number Diff line change
@@ -6,7 +6,15 @@
*/

import React, { memo } from 'react';
import { EuiCard, EuiIcon, EuiTextColor, EuiLink, EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import {
EuiCard,
EuiIcon,
EuiTextColor,
EuiLink,
EuiFlexGroup,
EuiFlexItem,
EuiText,
} from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
import styled from 'styled-components';
import { i18n } from '@kbn/i18n';
@@ -45,35 +53,37 @@ export const LockedPolicyCard = memo(() => {
description={false}
stephmilovic marked this conversation as resolved.
Show resolved Hide resolved
>
<EuiFlexGroup className="lockedCardDescription" direction="column" gutterSize="none">
<EuiFlexItem>
<h4>
<EuiTextColor color="subdued">
<EuiText>
<EuiFlexItem>
<h4>
<EuiTextColor color="subdued">
<FormattedMessage
id="xpack.securitySolution.endpoint.policy.details.upgradeToPlatinum"
defaultMessage="Upgrade to Elastic Platinum"
/>
</EuiTextColor>
</h4>
</EuiFlexItem>
<EuiFlexItem>
<p>
<FormattedMessage
id="xpack.securitySolution.endpoint.policy.details.upgradeToPlatinum"
defaultMessage="Upgrade to Elastic Platinum"
id="xpack.securitySolution.endpoint.policy.details.lockedCard"
defaultMessage="To turn on Ransomware protection, you must upgrade your license to Platinum, start a
free 30-day trial, or spin up a {cloudDeploymentLink} on AWS, GCP, or Azure."
values={{
cloudDeploymentLink: (
<EuiLink href="https://www.elastic.co/cloud/" target="_blank">
<FormattedMessage
id="xpack.securitySolution.endpoint.policy.details.cloudDeploymentLInk"
defaultMessage="cloud deployment"
/>
</EuiLink>
),
}}
/>
</EuiTextColor>
</h4>
</EuiFlexItem>
<EuiFlexItem>
<p>
<FormattedMessage
id="xpack.securitySolution.endpoint.policy.details.lockedCard"
defaultMessage="To turn on Ransomware protection, you must upgrade your license to Platinum, start a
free 30-day trial, or spin up a {cloudDeploymentLink} on AWS, GCP, or Azure."
values={{
cloudDeploymentLink: (
<EuiLink href="https://www.elastic.co/cloud/" target="_blank">
<FormattedMessage
id="xpack.securitySolution.endpoint.policy.details.cloudDeploymentLInk"
defaultMessage="cloud deployment"
/>
</EuiLink>
),
}}
/>
</p>
</EuiFlexItem>
</p>
</EuiFlexItem>
</EuiText>
</EuiFlexGroup>
</EuiCard>
</LockedPolicyDiv>