Skip to content

Commit

Permalink
fix: allow null in description list items
Browse files Browse the repository at this point in the history
  • Loading branch information
MMFane committed Sep 26, 2023
1 parent b5afd8e commit b319e09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/DescriptionList/DescriptionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export interface DescriptionListProps {
| React.ReactElement<DescriptionTermProps>
| React.ReactElement<DescriptionDetailsProps>
| React.ReactElement<DescriptionListGroupHeadingProps>
| null // allows items to be added programatically and made null if a condition doesn't apply
>;
title?: string;
titleIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
Expand Down

0 comments on commit b319e09

Please sign in to comment.