Skip to content

Commit

Permalink
Merge pull request #29545 from ValeraS/fix/addon-toolbars
Browse files Browse the repository at this point in the history
Toolbars: Suppress deprecation warning when using dynamic icons
  • Loading branch information
yannbf authored Nov 27, 2024
2 parents 5a27290 + f0720db commit f80d23a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/addons/toolbars/src/components/ToolbarMenuListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export const ToolbarMenuListItem = ({
disabled,
currentValue,
}: ToolbarMenuListItemProps) => {
const Icon = icon && <Icons style={{ opacity: 1 }} icon={icon} />;
const Icon = icon && (
<Icons style={{ opacity: 1 }} icon={icon} __suppressDeprecationWarning={true} />
);

const Item: TooltipLinkListLink = {
id: value ?? '_reset',
Expand Down

0 comments on commit f80d23a

Please sign in to comment.