fix: error alerts again (#17026)

This commit is contained in:
Erik Ritter 2021-10-07 15:30:56 -07:00 committed by GitHub
parent 03cdbac8bb
commit ea700384b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ export default function BasicErrorAlert({
return ( return (
<StyledContainer level={level} role="alert"> <StyledContainer level={level} role="alert">
{!level || level === 'error' ? ( {!level || level === 'error' ? (
<Icons.ErrorSolid iconColor={theme.colors[level].base} /> <Icons.ErrorSolid iconColor={theme.colors.error.base} />
) : ( ) : (
<Icons.WarningSolid iconColor={theme.colors[level].base} /> <Icons.WarningSolid iconColor={theme.colors[level].base} />
)} )}

View File

@ -111,7 +111,7 @@ export default function ErrorAlert({
{!level || level === 'error' ? ( {!level || level === 'error' ? (
<Icons.ErrorSolid <Icons.ErrorSolid
className="icon" className="icon"
iconColor={theme.colors[level].base} iconColor={theme.colors.error.base}
/> />
) : ( ) : (
<Icons.WarningSolid <Icons.WarningSolid
@ -174,7 +174,7 @@ export default function ErrorAlert({
{!level || level === 'error' ? ( {!level || level === 'error' ? (
<Icons.ErrorSolid <Icons.ErrorSolid
className="icon" className="icon"
iconColor={theme.colors[level].base} iconColor={theme.colors.error.base}
/> />
) : ( ) : (
<Icons.WarningSolid <Icons.WarningSolid