Set keys on list elements
This commit is contained in:
@@ -268,6 +268,7 @@ export default function () {
|
|||||||
element: (
|
element: (
|
||||||
<AppealCard
|
<AppealCard
|
||||||
{...(entry as AppealCardProps & { port?: MessagePort })}
|
{...(entry as AppealCardProps & { port?: MessagePort })}
|
||||||
|
key={`appeal_${entry.id}`}
|
||||||
port={messageChannel.current?.port2}
|
port={messageChannel.current?.port2}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
@@ -281,6 +282,7 @@ export default function () {
|
|||||||
element: (
|
element: (
|
||||||
<GameAppealCard
|
<GameAppealCard
|
||||||
{...(entry as GameAppealProps & { port?: MessagePort })}
|
{...(entry as GameAppealProps & { port?: MessagePort })}
|
||||||
|
key={`gma_${entry.id}`}
|
||||||
port={messageChannel.current?.port2}
|
port={messageChannel.current?.port2}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
@@ -294,6 +296,7 @@ export default function () {
|
|||||||
element: (
|
element: (
|
||||||
<InactivityNoticeCard
|
<InactivityNoticeCard
|
||||||
{...(entry as InactivityNoticeProps & { port?: MessagePort })}
|
{...(entry as InactivityNoticeProps & { port?: MessagePort })}
|
||||||
|
key={`inactivity_${entry.id}`}
|
||||||
port={messageChannel.current?.port2}
|
port={messageChannel.current?.port2}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
@@ -307,6 +310,7 @@ export default function () {
|
|||||||
element: (
|
element: (
|
||||||
<ReportCard
|
<ReportCard
|
||||||
{...(entry as ReportCardProps & { port?: MessagePort })}
|
{...(entry as ReportCardProps & { port?: MessagePort })}
|
||||||
|
key={`report_${entry.id}`}
|
||||||
port={messageChannel.current?.port2}
|
port={messageChannel.current?.port2}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ export default function (props: { isOpen: boolean; onClose: () => void }) {
|
|||||||
</Thead>
|
</Thead>
|
||||||
<Tbody>
|
<Tbody>
|
||||||
{entries.map((entry) => (
|
{entries.map((entry) => (
|
||||||
<Tr>
|
<Tr key={`appealban_${entry.user}`}>
|
||||||
<Td>{entry.user}</Td>
|
<Td>{entry.user}</Td>
|
||||||
<Td>{entry.created_by}</Td>
|
<Td>{entry.created_by}</Td>
|
||||||
<Td>{new Date(entry.created_at).toUTCString()}</Td>
|
<Td>{new Date(entry.created_at).toUTCString()}</Td>
|
||||||
|
|||||||
Reference in New Issue
Block a user