Set keys on list elements
This commit is contained in:
@@ -268,6 +268,7 @@ export default function () {
|
||||
element: (
|
||||
<AppealCard
|
||||
{...(entry as AppealCardProps & { port?: MessagePort })}
|
||||
key={`appeal_${entry.id}`}
|
||||
port={messageChannel.current?.port2}
|
||||
/>
|
||||
),
|
||||
@@ -281,6 +282,7 @@ export default function () {
|
||||
element: (
|
||||
<GameAppealCard
|
||||
{...(entry as GameAppealProps & { port?: MessagePort })}
|
||||
key={`gma_${entry.id}`}
|
||||
port={messageChannel.current?.port2}
|
||||
/>
|
||||
),
|
||||
@@ -294,6 +296,7 @@ export default function () {
|
||||
element: (
|
||||
<InactivityNoticeCard
|
||||
{...(entry as InactivityNoticeProps & { port?: MessagePort })}
|
||||
key={`inactivity_${entry.id}`}
|
||||
port={messageChannel.current?.port2}
|
||||
/>
|
||||
),
|
||||
@@ -307,6 +310,7 @@ export default function () {
|
||||
element: (
|
||||
<ReportCard
|
||||
{...(entry as ReportCardProps & { port?: MessagePort })}
|
||||
key={`report_${entry.id}`}
|
||||
port={messageChannel.current?.port2}
|
||||
/>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user