Parcourir la source

fix: display error

MystiPanda il y a 1 an
Parent
commit
b598d00aef
1 fichiers modifiés avec 3 ajouts et 6 suppressions
  1. 3 6
      src/components/layout/layout-item.tsx

+ 3 - 6
src/components/layout/layout-item.tsx

@@ -52,12 +52,9 @@ export const LayoutItem = (props: Props) => {
         ]}
         onClick={() => navigate(to)}
       >
-        {menu_icon === "monochrome" ||
-          (!menu_icon && (
-            <ListItemIcon sx={{ color: "text.primary" }}>
-              {icon[0]}
-            </ListItemIcon>
-          ))}
+        {(menu_icon === "monochrome" || !menu_icon) && (
+          <ListItemIcon sx={{ color: "text.primary" }}>{icon[0]}</ListItemIcon>
+        )}
         {menu_icon === "colorful" && <ListItemIcon>{icon[1]}</ListItemIcon>}
         <ListItemText
           sx={{