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][Detections] Update read-only callouts from warning to info so they persist when dismissed #84904

Merged
Next Next commit
Adjust the callout to be of type Info
  • Loading branch information
banderror committed Dec 15, 2020
commit cb655673b0d20fe6ee65300608e2e70c9e4a39ad
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ const NoWriteAlertsCallOutComponent = () => {
const handleCallOut = useCallback(() => setShowCallOut(false), [setShowCallOut]);

return showCallOut ? (
<EuiCallOut title={i18n.NO_WRITE_ALERTS_CALLOUT_TITLE} color="warning" iconType="alert">
<EuiCallOut title={i18n.NO_WRITE_ALERTS_CALLOUT_TITLE} iconType="iInCircle">
<p>{i18n.NO_WRITE_ALERTS_CALLOUT_MSG}</p>
<EuiButton color="warning" onClick={handleCallOut}>
{i18n.DISMISS_CALLOUT}
</EuiButton>
<EuiButton onClick={handleCallOut}>{i18n.DISMISS_CALLOUT}</EuiButton>
</EuiCallOut>
) : null;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ const ReadOnlyCallOutComponent = () => {
const handleCallOut = useCallback(() => setShowCallOut(false), [setShowCallOut]);

return showCallOut ? (
<EuiCallOut title={i18n.READ_ONLY_CALLOUT_TITLE} color="warning" iconType="alert">
<EuiCallOut title={i18n.READ_ONLY_CALLOUT_TITLE} iconType="iInCircle">
<p>{i18n.READ_ONLY_CALLOUT_MSG}</p>
<EuiButton color="warning" onClick={handleCallOut}>
{i18n.DISMISS_CALLOUT}
</EuiButton>
<EuiButton onClick={handleCallOut}>{i18n.DISMISS_CALLOUT}</EuiButton>
</EuiCallOut>
) : null;
};
Expand Down