From a6f62cf034ed3d659e815705955d5f95803ee7d3 Mon Sep 17 00:00:00 2001 From: Manuel Date: Wed, 13 Dec 2023 11:20:03 +0100 Subject: [PATCH] fix(components): use div instead of button to fix invalid html --- src/components/navigation/navigation-disclosure-panel.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/navigation/navigation-disclosure-panel.tsx b/src/components/navigation/navigation-disclosure-panel.tsx index e59fa2fc..c07c5284 100644 --- a/src/components/navigation/navigation-disclosure-panel.tsx +++ b/src/components/navigation/navigation-disclosure-panel.tsx @@ -2,8 +2,7 @@ import React from "react"; import { Disclosure } from "@headlessui/react"; import { classNames } from "../../util/class-names"; -export interface NavigationDisclosurePanelItemProps - extends React.ComponentPropsWithoutRef<"button"> { +export interface NavigationDisclosurePanelItemProps extends React.ComponentPropsWithoutRef<"div"> { isActive?: boolean; isIndented?: boolean; } @@ -15,8 +14,7 @@ const NavigationDisclosurePanelItem = ({ ...props }: NavigationDisclosurePanelItemProps) => { return ( - + ); };