Coursemology/coursemology2

View on GitHub
client/app/lib/components/navigation/BrandingHead.tsx

Summary

Maintainability
A
3 hrs
Test Coverage

Function BrandingHead has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const BrandingHead = (props: BrandingHeadProps): JSX.Element => {
  const { t } = useTranslation();

  const courseSwitcherRef =
    useRef<ComponentRef<typeof CourseSwitcherPopupMenu>>(null);
Severity: Minor
Found in client/app/lib/components/navigation/BrandingHead.tsx - About 1 hr to fix

Function UserMenuButton has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const UserMenuButton = (): JSX.Element | null => {
  const { user } = useAppContext();
  const auth = useAuthAdapter();

  const { t } = useTranslation();
Severity: Minor
Found in client/app/lib/components/navigation/BrandingHead.tsx - About 1 hr to fix

There are no issues that match your filters.

Category
Status