feat: add view match link to admin matches page

This commit is contained in:
2026-03-31 18:52:06 -07:00
parent 381bf630c7
commit 59009f0bf7
+8
View File
@@ -168,6 +168,13 @@ export default function AdminMatchesPage() {
{match.team2Score} {match.team2Score}
</td> </td>
<td className="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> <td className="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<div className="flex gap-3">
<Link
href={`/matches/${match.id}`}
className="text-blue-600 hover:text-blue-900"
>
View
</Link>
<button <button
onClick={() => handleDelete(match.id)} onClick={() => handleDelete(match.id)}
disabled={deletingId === match.id} disabled={deletingId === match.id}
@@ -175,6 +182,7 @@ export default function AdminMatchesPage() {
> >
{deletingId === match.id ? "Deleting..." : "Delete"} {deletingId === match.id ? "Deleting..." : "Delete"}
</button> </button>
</div>
</td> </td>
</tr> </tr>
))} ))}