Skip to content

Commit

Permalink
fix(addon-toolbars): suppress deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeraS committed Nov 5, 2024
1 parent c1a8779 commit 1bf3b54
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 1bf3b54

Please sign in to comment.