From de75d3c56f80ef3cb4561e517480344f3d3892c1 Mon Sep 17 00:00:00 2001 From: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Sat, 18 May 2024 09:32:14 +0300 Subject: [PATCH] Fix className is undefined error for FontAwesome --- .../dashboard/src/components/navigation/Sidebar.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Plan/react/dashboard/src/components/navigation/Sidebar.jsx b/Plan/react/dashboard/src/components/navigation/Sidebar.jsx index f4adfa5103..1a85395606 100644 --- a/Plan/react/dashboard/src/components/navigation/Sidebar.jsx +++ b/Plan/react/dashboard/src/components/navigation/Sidebar.jsx @@ -32,7 +32,7 @@ const InnerItem = ({href, icon, name, nameShort, color, external, collapseSideba if (external) { return ( - + {nameShort ? nameShort : name} ) @@ -41,7 +41,7 @@ const InnerItem = ({href, icon, name, nameShort, color, external, collapseSideba return { return isActive ? "collapse-item nav-button active" : "collapse-item nav-button" }}> - {nameShort ? nameShort : name} + {nameShort ? nameShort : name} } @@ -65,7 +65,7 @@ export const Item = ({item, inner, collapseSidebar}) => { return (
  • - + {t(nameShort ? nameShort : name)}
  • @@ -77,7 +77,7 @@ export const Item = ({item, inner, collapseSidebar}) => { { return isActive ? "nav-link active" : "nav-link" }}> - {t(name)} + {t(name)} ); @@ -142,7 +142,7 @@ const SidebarCollapse = ({item, open, setOpen, collapseSidebar}) => { aria-expanded={open} data-bs-toggle="collapse" > - + {t(item.name)}