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
+15 -7
View File
@@ -168,13 +168,21 @@ 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">
<button <div className="flex gap-3">
onClick={() => handleDelete(match.id)} <Link
disabled={deletingId === match.id} href={`/matches/${match.id}`}
className="text-red-600 hover:text-red-900 disabled:opacity-50" className="text-blue-600 hover:text-blue-900"
> >
{deletingId === match.id ? "Deleting..." : "Delete"} View
</button> </Link>
<button
onClick={() => handleDelete(match.id)}
disabled={deletingId === match.id}
className="text-red-600 hover:text-red-900 disabled:opacity-50"
>
{deletingId === match.id ? "Deleting..." : "Delete"}
</button>
</div>
</td> </td>
</tr> </tr>
))} ))}