feat: add view match link to admin matches page
This commit is contained in:
@@ -168,13 +168,21 @@ export default function AdminMatchesPage() {
|
||||
{match.team2Score}
|
||||
</td>
|
||||
<td className="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
||||
<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 className="flex gap-3">
|
||||
<Link
|
||||
href={`/matches/${match.id}`}
|
||||
className="text-blue-600 hover:text-blue-900"
|
||||
>
|
||||
View
|
||||
</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>
|
||||
</tr>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user