Skip to content

Commit

Permalink
fix: Make it work also with remix icons without console warnings - re…
Browse files Browse the repository at this point in the history
…fs #258073
  • Loading branch information
avoinea committed Sep 22, 2023
1 parent 44dee30 commit fa0e523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ToolbarAction.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const ToolbarAction = (props) => {
const hasTitle = !item?.icon?.includes('no-title');
return (
<UniversalLink href={item.url} title={item.title}>
{hasIcon ? <Icon name={item.icon} alt={item.title} /> : ''}
{hasIcon ? <Icon className={item.icon} alt={item.title} /> : ''}
{hasTitle ? <span>{item.title}</span> : ''}
</UniversalLink>
);
Expand Down

0 comments on commit fa0e523

Please sign in to comment.