feat: Updating the messages for certificate availability.

[MICROBA-678]
This commit is contained in:
Albert (AJ) St. Aubin
2021-05-20 16:27:34 -04:00
parent 75c9e93241
commit fdfb60bee8
7 changed files with 43 additions and 42 deletions

View File

@@ -41,6 +41,13 @@ function getAlertIcon(type) {
return faInfoCircle;
}
function getAlertIconColor(type) {
if (type === ALERT_TYPES.SUCCESS) {
return 'text-success-500';
}
return '';
}
function Alert({
type, dismissible, children, footer, intl, onDismiss,
}) {
@@ -49,7 +56,7 @@ function Alert({
<div className="row w-100 m-0">
{type !== ALERT_TYPES.WELCOME && (
<div className="col-auto p-0 mr-3">
<FontAwesomeIcon icon={getAlertIcon(type)} />
<FontAwesomeIcon icon={getAlertIcon(type)} className={getAlertIconColor(type)} />
</div>
)}
<div className="col mr-4 p-0 align-items-start">