src/layouts/components/Header.tsx

Summary

Maintainability
C
1 day
Test Coverage

File Header.tsx has 573 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { Link } from "@components/commons/link/Link";
import { IoChevronDown } from "react-icons/io5";
import { DeFiChainLogo } from "@components/icons/DeFiChainLogo";
import classNames from "classnames";
import { useRouter } from "next/router";
Severity: Major
Found in src/layouts/components/Header.tsx - About 1 day to fix

    Function Header has 140 lines of code (exceeds 100 allowed). Consider refactoring.
    Open

    export function Header(): JSX.Element {
      const [menu, setMenu] = useState(false);
      const [atTop, setAtTop] = useState(true);
      const [isSearchIconClicked, setIsSearchIconClicked] = useState(false);
      const [openProposalsLength, setOpenProposalsLength] = useState<
    Severity: Major
    Found in src/layouts/components/Header.tsx - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status