Revert "Capitalize the license type in monitoring"

This reverts commit 38ad3a516d.
This commit is contained in:
Chris Roberson 2018-07-11 14:28:04 -04:00
parent 38ad3a516d
commit 94e85c7a60

View file

@ -18,7 +18,6 @@ import {
export class LicenseStatus extends React.PureComponent {
render() {
const { isExpired, status, type, expiryDate } = this.props;
const capitalizedType = type[0].toUpperCase() + type.slice(1);
let icon;
let title;
let message;
@ -29,7 +28,7 @@ export class LicenseStatus extends React.PureComponent {
Your license expired on <strong>{expiryDate}</strong>
</Fragment>
);
title = `Your ${capitalizedType} license has expired`;
title = `Your ${type} license has expired`;
} else {
icon = <EuiIcon color="success" type="checkInCircleFilled" />;
message = expiryDate ? (
@ -39,7 +38,7 @@ export class LicenseStatus extends React.PureComponent {
) : (
<Fragment>Your license will never expire.</Fragment>
);
title = `Your ${capitalizedType} license is ${status.toLowerCase()}`;
title = `Your ${type} license is ${status.toLowerCase()}`;
}
return (
<div>