Table link (#72)

* link icon added

* removed unused import
This commit is contained in:
Owen Rees
2023-07-05 22:59:46 +02:00
committed by GitHub
parent c29d11fd7b
commit 644cc4e4bb
+8 -1
View File
@@ -11,13 +11,14 @@ import {
hoveredMapTournamentIdAtom,
debouncedHoveredMapTournamentIdAtom,
debouncedHoveredListTournamentIdAtom,
searchStringAtom,
} from "@/app/atoms";
import SearchBar from "./SearchBar";
import TimeControlFilters from "./TimeControlFilters";
import ScrollToTopButton from "./ScrollToTopButton";
import { FaExternalLinkAlt } from "react-icons/fa";
export default function TournamentTable() {
const t = useTranslations("Tournaments");
@@ -85,6 +86,7 @@ export default function TournamentTable() {
<th className="sticky top-0 bg-teal-600 p-3 text-white dark:bg-gray-600">
{t("timeControl")}
</th>
<th className="sticky w-[50px] top-0 bg-teal-600 p-3 text-white dark:bg-gray-600"></th>
</tr>
</thead>
@@ -128,6 +130,11 @@ export default function TournamentTable() {
{t("timeControlEnum", { tc: tournament.timeControl })}
</a>
</td>
<td className="p-3">
<a href={tournament.url} target="_blank">
<FaExternalLinkAlt />
</a>
</td>
</tr>
))
)}