refactor: Simplify chat menu items rendering in SiderBar
This commit is contained in:
@@ -294,8 +294,6 @@ const SiderBar = () => {
|
||||
}}
|
||||
>
|
||||
{/* Chat Section - Only show if there are chat items */}
|
||||
{chatItems.length > 0 && (
|
||||
<>
|
||||
{chatMenuItems.map((item) => {
|
||||
if (item.items && item.items.length > 0) {
|
||||
return (
|
||||
@@ -325,8 +323,7 @@ const SiderBar = () => {
|
||||
);
|
||||
}
|
||||
})}
|
||||
</>
|
||||
)}
|
||||
|
||||
|
||||
{/* Divider */}
|
||||
<Divider style={dividerStyle} />
|
||||
|
||||
Reference in New Issue
Block a user