From 290dc1a5c2cef6abe1c54d1222cc94633481267c Mon Sep 17 00:00:00 2001 From: Nathan Seva Date: Mon, 30 Oct 2023 12:47:59 -0500 Subject: [PATCH] rename interface --- src/components/Accordion/Accordion.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Accordion/Accordion.tsx b/src/components/Accordion/Accordion.tsx index 607ef349..04b3560a 100644 --- a/src/components/Accordion/Accordion.tsx +++ b/src/components/Accordion/Accordion.tsx @@ -10,7 +10,7 @@ interface AccordionProps extends ComponentPropsWithoutRef<'div'> { state?: boolean; } -interface AccordionCategory extends ComponentPropsWithoutRef<'div'> { +interface AccordionCategoryProps extends ComponentPropsWithoutRef<'div'> { categoryTitle: string | React.ReactNode; state?: boolean; isChild?: boolean; @@ -19,7 +19,7 @@ interface AccordionCategory extends ComponentPropsWithoutRef<'div'> { customClass?: string; } -interface AccordionContent extends ComponentPropsWithoutRef<'div'> { +interface AccordionContentProps extends ComponentPropsWithoutRef<'div'> { customClass?: string; } @@ -46,7 +46,7 @@ export function Accordion(props: AccordionProps) { ); } -export function AccordionCategory(props: AccordionCategory) { +export function AccordionCategory(props: AccordionCategoryProps) { const { categoryTitle, children, @@ -86,7 +86,7 @@ export function AccordionCategory(props: AccordionCategory) { ); } -export function AccordionContent(props: AccordionContent) { +export function AccordionContent(props: AccordionContentProps) { const { children, customClass } = props; return (