Skip to content

Commit

Permalink
🏷️ Fix React Alert element missing type
Browse files Browse the repository at this point in the history
  • Loading branch information
Frontendland committed Dec 30, 2024
1 parent a743b05 commit 2a5b73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Alert = ({
<Element className={classes} {...rest}>
{icon && icon}
{!icon && theme && <div
dangerouslySetInnerHTML={{ __html: iconMap[theme] }}
dangerouslySetInnerHTML={{ __html: iconMap[theme as keyof typeof iconMap] }}
style={{ height: '20px' }}
/>}

Expand Down

0 comments on commit 2a5b73c

Please sign in to comment.