From f61d79f74d84776b3c3e90576fbb2d3b30783fb9 Mon Sep 17 00:00:00 2001 From: Guido Modarelli Date: Wed, 11 Dec 2024 09:55:10 -0300 Subject: [PATCH] refactor(ribbon-item): change item.style to contentStyle for improved clarity in WzRibbonItem component --- plugins/main/public/components/common/ribbon/ribbon-item.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/main/public/components/common/ribbon/ribbon-item.tsx b/plugins/main/public/components/common/ribbon/ribbon-item.tsx index 5f2d1d58e3..7c95f6b346 100644 --- a/plugins/main/public/components/common/ribbon/ribbon-item.tsx +++ b/plugins/main/public/components/common/ribbon/ribbon-item.tsx @@ -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 = ''; @@ -123,7 +123,7 @@ const WzRibbonItem = (props: RibbonItemProps) => { style={item.style} /> ) : ( - + {item.render ? ( item.render() ) : (