From 4e854e7c792ad4b11adaf08b403a75b66609d672 Mon Sep 17 00:00:00 2001 From: Virtute90 <32056724+Virtute90@users.noreply.github.com> Date: Thu, 21 Mar 2024 14:47:33 +0100 Subject: [PATCH] fix: accordion types error --- src/Accordion/Accordion.tsx | 4 ++-- src/Accordion/AccordionHeader.tsx | 4 ++-- src/Accordion/AccordionItem.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Accordion/Accordion.tsx b/src/Accordion/Accordion.tsx index e594d6f96..8a5eed05a 100644 --- a/src/Accordion/Accordion.tsx +++ b/src/Accordion/Accordion.tsx @@ -1,7 +1,7 @@ -import React, { ElementType, FC } from 'react'; +import React, { ElementType, FC, HTMLAttributes } from 'react'; import classNames from 'classnames'; -export interface AccordionProps { +export interface AccordionProps extends HTMLAttributes { /** Utilizzarlo in caso di utilizzo di componenti personalizzati */ tag?: ElementType; /** Classi aggiuntive da usare per il componente Badge */ diff --git a/src/Accordion/AccordionHeader.tsx b/src/Accordion/AccordionHeader.tsx index a98cea96c..0be43eb8c 100644 --- a/src/Accordion/AccordionHeader.tsx +++ b/src/Accordion/AccordionHeader.tsx @@ -1,7 +1,7 @@ -import React, { FC, ReactNode, ElementType } from 'react'; import classNames from 'classnames'; +import React, { ElementType, FC, HTMLAttributes, ReactNode } from 'react'; -export interface AccordionHeaderProps { +export interface AccordionHeaderProps extends HTMLAttributes { /** Utilizzarlo in caso di utilizzo di componenti personalizzati */ tag?: ElementType; /** Classi aggiuntive da usare per il componente AccordionHeader */ diff --git a/src/Accordion/AccordionItem.tsx b/src/Accordion/AccordionItem.tsx index 0230076ce..2382fb21d 100644 --- a/src/Accordion/AccordionItem.tsx +++ b/src/Accordion/AccordionItem.tsx @@ -1,7 +1,7 @@ -import React, { ElementType, FC } from 'react'; import classNames from 'classnames'; +import React, { ElementType, FC, HTMLAttributes } from 'react'; -export interface AccordionItemProps { +export interface AccordionItemProps extends HTMLAttributes { /** Utilizzarlo in caso di utilizzo di componenti personalizzati */ tag?: ElementType; /** Classi aggiuntive da usare per il componente */