crane-cloud/frontend

View on GitHub
src/components/Navbars/LeftMenu.tsx

Summary

Maintainability
A
55 mins
Test Coverage

Showing 1 of 1 total issue

Function LeftMenu has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

({ menuType, projectId, title, subtitle, appId }: ILeftMenuProps) => {
const location = useLocation();
const [navbarLinks, setNavbarLinks] = useState<INavLink[]>([]);
const [showProjectHeader, setShowProjectHeader] = useState(false);
 
 
Severity: Minor
Found in src/components/Navbars/LeftMenu.tsx - About 55 mins to fix
Category
Status