Skip to content

Commit

Permalink
fix: common - lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hussedev committed Sep 26, 2024
1 parent 78d0b95 commit bfcd552
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ import { NavbarActions } from "./NavbarActions";
import { NavbarLogo } from "./NavbarLogo";
import { NavbarProvider } from "./NavbarContext";

// eslint-disable-next-line @typescript-eslint/no-explicit-any
type NavbarSubComponent = React.ComponentType<any> & {
displayName?: string;
navbarSection?: "main" | "banner";
};

function isNavbarSubComponent(
child: React.ReactNode
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): child is ReactElement<any, NavbarSubComponent> {
return (
React.isValidElement(child) &&
Expand Down

0 comments on commit bfcd552

Please sign in to comment.