Pass in the type capitalized

This commit is contained in:
Chris Roberson 2018-07-11 14:29:05 -04:00
parent 94e85c7a60
commit 6a05bb12f3

View file

@ -54,12 +54,14 @@ export class LicenseViewController {
expiryDate = formatDateTimeLocal(license.expiry_date);
}
const capitalizedType = license.type[0].toUpperCase() + license.type.slice(1);
// Mount the React component to the template
render(
<License
isPrimaryCluster={isPrimaryCluster}
status={license.status}
type={license.type}
type={capitalizedType}
isExpired={isExpired}
expiryDate={expiryDate}
uploadLicensePath={uploadLicensePath}