feat: add view match link to admin matches page
This commit is contained in:
@@ -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>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user