fix: redundant 'key' attribute in HTML tag

This commit is contained in:
alikia2x (寒寒) 2025-03-30 18:42:24 +08:00
parent 1346700c35
commit cded4cd825
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6

View File

@ -164,7 +164,7 @@ interface Snapshot {
</thead>
<tbody>
{snapshots.map((snapshot: Snapshot) => (
<tr key={snapshot.id}>
<tr>
<td class="border px-4 py-2">{format(new Date(snapshot.created_at), 'yyyy-MM-dd HH:mm:ss', { locale: zhCN })}</td>
<td class="border px-4 py-2">{snapshot.views}</td>
<td class="border px-4 py-2">{snapshot.coins}</td>