Skip to content

Commit

Permalink
fix unique key in various locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Petter Andersson committed Feb 3, 2025
1 parent 8a616c2 commit af4ca94
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/adverts/components/details/advert-card/ClaimsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ const ActionButtons: FC<{
action,
}: Omit<InferFCType<typeof OganizationsAwareActionButton>, 'terms'>) => (
<OganizationsAwareActionButton
key={label}
label={label}
icon={icon}
action={action}
Expand Down Expand Up @@ -328,11 +329,6 @@ const ActionButtons: FC<{
{buttons}
</Stack>
)
return (
<ButtonGroup orientation={horizontalGroup ? 'horizontal' : 'vertical'}>
{buttons}
</ButtonGroup>
)
}

export const ClaimCard: FC<{
Expand Down
4 changes: 2 additions & 2 deletions src/adverts/components/details/advert-card/ContactCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export const ContactCard = (props: PaperProps & { advert: Advert }) => {
.split(',')
.map((v) => v.trim())
.filter((v) => v.length > 0)
.map((v) => (
<Typography>
.map((v, key) => (
<Typography key={key}>
<Link href={`tel:${v}`}>{v}</Link>
</Typography>
))}
Expand Down
4 changes: 2 additions & 2 deletions src/adverts/components/details/advert-card/HistoryPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const EventsCard: FC<{ events: ServerSideLogEvent[] }> = ({ events }) => {
Historik
</Typography>
<Timeline>
{events.map(({ event, at, by }) => (
<TimelineItem>
{events.map(({ event, at, by }, key) => (
<TimelineItem key={key}>
<TimelineOppositeContent
variant="body2"
color="text.secondary"
Expand Down
3 changes: 2 additions & 1 deletion src/adverts/components/details/advert-card/TagCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ export const TagCard = (props: PaperProps & { advert: Advert }) => {
return (
tags.length > 0 && (
<>
{tags.map((v) => (
{tags.map((v, key) => (
<Chip
key={key}
clickable
onClick={() => clicked(v)}
label={v}
Expand Down

0 comments on commit af4ca94

Please sign in to comment.