Skip to content

Commit

Permalink
fix fragment key
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoskolodny committed Nov 19, 2024
1 parent 42b1727 commit f6d2d9d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/sheet-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,8 @@ const InfoSheet = React.forwardRef<HTMLDivElement, InfoSheetProps>(
>
<Box paddingBottom={16} role="list">
{items.map((item, idx) => (
<>
<div
key={item.id || idx}
className={styles.itemContainer}
role="listitem"
>
<React.Fragment key={item.id || idx}>
<div className={styles.itemContainer} role="listitem">
<Inline space={8}>
<div
className={styles.infoItemIconContainer}
Expand Down Expand Up @@ -118,7 +114,7 @@ const InfoSheet = React.forwardRef<HTMLDivElement, InfoSheetProps>(
</Inline>
</div>
{idx < items.length - 1 && <Divider />}
</>
</React.Fragment>
))}
</Box>
</SheetBody>
Expand Down

0 comments on commit f6d2d9d

Please sign in to comment.