diff --git a/packages/libs/react-ui/src/components/NavAccordion/NavAccordion.stories.tsx b/packages/libs/react-ui/src/components/NavAccordion/NavAccordion.stories.tsx index 5d64d2f8cf8..273afba7302 100644 --- a/packages/libs/react-ui/src/components/NavAccordion/NavAccordion.stories.tsx +++ b/packages/libs/react-ui/src/components/NavAccordion/NavAccordion.stories.tsx @@ -45,7 +45,6 @@ export const Dynamic: IStory = { render: ({ linked }) => { return ( - {/* Introduction */} @@ -70,7 +69,6 @@ export const Dynamic: IStory = { Technical Grants - {/* Pact Reference */} ); }, diff --git a/packages/libs/react-ui/src/components/NavAccordion/NavAccordionGroup.tsx b/packages/libs/react-ui/src/components/NavAccordion/NavAccordionGroup.tsx index cbdad9d402a..e32da469a9f 100644 --- a/packages/libs/react-ui/src/components/NavAccordion/NavAccordionGroup.tsx +++ b/packages/libs/react-ui/src/components/NavAccordion/NavAccordionGroup.tsx @@ -7,6 +7,7 @@ import { navAccordionGroupIconClass, navAccordionGroupListClass, navAccordionGroupTitleClass, + navAccordionListItemClass, } from './NavAccordion.css'; import type { INavAccordionLinkProps } from './NavAccordionLink'; @@ -57,18 +58,20 @@ export const NavAccordionGroup: FC = ({ {isOpen && children && ( )} diff --git a/packages/libs/react-ui/src/components/NavAccordion/NavAccordionLink.tsx b/packages/libs/react-ui/src/components/NavAccordion/NavAccordionLink.tsx index e9f7a978bd0..3acc8a3df18 100644 --- a/packages/libs/react-ui/src/components/NavAccordion/NavAccordionLink.tsx +++ b/packages/libs/react-ui/src/components/NavAccordion/NavAccordionLink.tsx @@ -2,7 +2,6 @@ import { navAccordionDeepLinkClass, navAccordionLinkActiveClass, navAccordionLinkClass, - navAccordionListItemClass, } from './NavAccordion.css'; import { Link } from '@components/Link'; @@ -24,16 +23,14 @@ export const NavAccordionLink: FC = ({ href, }) => { return ( -
  • - - {children} - -
  • + + {children} + ); }; diff --git a/packages/libs/react-ui/src/components/NavAccordion/NavAccordionSection.tsx b/packages/libs/react-ui/src/components/NavAccordion/NavAccordionSection.tsx index 917e124e8e9..d7fa83483d2 100644 --- a/packages/libs/react-ui/src/components/NavAccordion/NavAccordionSection.tsx +++ b/packages/libs/react-ui/src/components/NavAccordion/NavAccordionSection.tsx @@ -7,14 +7,18 @@ import { navAccordionSectionWrapperClass, navAccordionToggleIconClass, } from './NavAccordion.css'; +import type { INavAccordionGroupProps } from './NavAccordionGroup'; +import type { INavAccordionLinkProps } from './NavAccordionLink'; import { SystemIcon } from '@components/Icon'; import classNames from 'classnames'; -import type { FC } from 'react'; +import type { FC, FunctionComponentElement } from 'react'; import React from 'react'; export interface INavAccordionSectionProps { - children?: React.ReactNode; + children?: FunctionComponentElement< + INavAccordionGroupProps | INavAccordionLinkProps + >[]; index?: number; isOpen?: boolean; onClick?: () => void;