Skip to content

Commit

Permalink
fix: icon colour
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Nov 23, 2023
1 parent 9fb9e96 commit 92b54af
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/tx/ErrorMessage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ const ErrorMessage = ({
return (
<div className={classNames(css.container, css[level], className, 'errorMessage')}>
<div className={css.message}>
<SvgIcon component={level === 'info' ? InfoIcon : WarningIcon} inheritViewBox fontSize="small" />
<SvgIcon
component={level === 'info' ? InfoIcon : WarningIcon}
inheritViewBox
fontSize="small"
sx={{ color: ({ palette }) => `${palette[level].main} !important` }}
/>

<div>
<Typography variant="body2" component="span">
Expand Down

0 comments on commit 92b54af

Please sign in to comment.