Skip to content

Commit

Permalink
refactor(ribbon-item): change item.style to contentStyle for improved…
Browse files Browse the repository at this point in the history
… clarity in WzRibbonItem component
  • Loading branch information
guidomodarelli committed Dec 11, 2024
1 parent 1067c83 commit f61d79f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/main/public/components/common/ribbon/ribbon-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ interface RibbonItemProps {
const WzRibbonItem = (props: RibbonItemProps) => {
const { item } = props;

item.style = { ...item.style, fontSize: FONT_SIZE };
const contentStyle = { ...item.style, fontSize: FONT_SIZE };

const getPlatformIcon = (agent?: Agent) => {
let icon = '';
Expand Down Expand Up @@ -123,7 +123,7 @@ const WzRibbonItem = (props: RibbonItemProps) => {
style={item.style}
/>
) : (
<WzTextWithTooltipIfTruncated contentStyle={item.style}>
<WzTextWithTooltipIfTruncated contentStyle={contentStyle}>
{item.render ? (
item.render()
) : (
Expand Down

0 comments on commit f61d79f

Please sign in to comment.