use check icon on snackbars with no errors
This commit is contained in:
parent
11c797fa0c
commit
6e80dbba04
2 changed files with 4 additions and 7 deletions
|
@ -50,9 +50,8 @@ class SnackBar extends React.PureComponent<Props> {
|
|||
})}
|
||||
>
|
||||
<div className="snack-bar__message">
|
||||
<div>
|
||||
<Icon icon={ICONS.ALERT} size={20} />
|
||||
</div>
|
||||
<Icon icon={isError ? ICONS.ALERT : ICONS.COMPLETED} size={18} />
|
||||
|
||||
<div>{message}</div>
|
||||
</div>
|
||||
{linkText && linkTarget && (
|
||||
|
|
|
@ -49,9 +49,7 @@
|
|||
flex-direction: row;
|
||||
font-size: var(--font-body);
|
||||
|
||||
div {
|
||||
&:nth-of-type(1) {
|
||||
margin-right: var(--spacing-m);
|
||||
}
|
||||
.icon {
|
||||
margin-right: var(--spacing-m);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue