Skip to content

Commit

Permalink
change(filter): use volto icons as fallback is iconComponent option i…
Browse files Browse the repository at this point in the history
…sn't set

- this way we keep the backward compatibility whereby default the package uses
   volto svg icons
  • Loading branch information
ichim-david committed Aug 17, 2023
1 parent db64f21 commit bd504d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/manage/Blocks/Accordion/util.js
Expand Up @@ -56,7 +56,7 @@ export const Icon = (props) => {
VoltoIcon,
};
// Get the component from the map based on the configuration
const IconComponent = componentMap[componentToRender] || SemanticIcon;
const IconComponent = componentMap[componentToRender] || VoltoIcon;

return <IconComponent size={options.size} name={name} {...rest} />;
};

0 comments on commit bd504d3

Please sign in to comment.