Skip to content

Commit 13f1ca0

Browse files
committed
fix(v6): Fix multi content card layout
1 parent f81d360 commit 13f1ca0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/module/src/MultiContentCard/MultiContentCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const MultiContentCard: React.FunctionComponent<MultiContentCardProps> = ({
7777
const renderCards = (cards: (React.ReactElement | MutliContentCardProps)[], withDividers?: boolean) => (
7878
<Flex alignSelf={{ default: 'alignSelfStretch' }} alignItems={{ default: 'alignItemsStretch' }}>
7979
{cards.map((card, index) => (
80-
<div key={`card-${index}`}>
80+
<>
8181
{index > 0 && isCardWithProps(card) && card.dividerVariant === MultiContentCardDividerVariant.left && (
8282
<Divider
8383
orientation={{ md: 'vertical' }}
@@ -93,7 +93,7 @@ const MultiContentCard: React.FunctionComponent<MultiContentCardProps> = ({
9393
inset={{ default: 'inset3xl' }}
9494
/>
9595
)}
96-
</div>
96+
</>
9797
))}
9898
</Flex>
9999
);

0 commit comments

Comments
 (0)